Perl System values to variables

In perl you can easily assign the system (“some commands”) values to variables using the  Capture::Tiny Module. Step 1: Download the Capture::Tiny Module from cpan. http://search.cpan.org/~dagolden/Capture-Tiny-0.20/lib/Capture/Tiny.pm Step 2: Extract the downloaded file and go into that and run perl Makefile.PL make  make run make install  commands to install. Step 3:  Example program. use strict; use warnings; BEGIN {required Capture::Tiny; }

134 total views, no views today

» Read more

Perl path setting in windows 7

Step 1: Before path setting you can see the command prompt window like this, Step 2: setting path through system properties Right click on computer -> Properties -> Advanced system settings -> Advanced tab -> Environment variables -> System variables -> edit the path and add this, “C:\xampp\perl\bin” (location of perl bin) Step 3: Setting path through command prompt, Difference

136 total views, no views today

» Read more

Perl Hello world CGI in xampp server

Download Xampp from http://www.apachefriends.org/en/xampp-windows.html Step 1: Create a file named javadomain.cgi and paste the below code, #!”C:\xampp\perl\bin\perl.exe” print “Content-type: text/html\n\n”; print “<H1>Hello World</H1>\n”; #!”C:\xampp\perl\bin\perl.exe” is the location of perl.exe. Step 2: Save this file in C:\xampp\htdocs Step 3: Open the xampp control panel. which is in c:\xampp. Step 4: Start the servers,   Step 5: Check whether the server is on

752 total views, no views today

» Read more

Perl Hello World

Step 1: Create a text file named HelloJAVADOMAINdotIN.pl and copy this below single line,   print “Hello JAVADOMAINdotIN\n”;   Step 2: Save this file in your perl directory bin folder. Ex: C:\xampp\perl\bin Step 3: Open the command prompt and run the file like this, “perl HelloJAVADOMAINdotIN.pl”  then you can see the output like this,     Thanks for reading this post………!!!  

150 total views, no views today

» Read more