1. Download the Perl software:
from Perl
web page or from local site (binary
version , help & documentation).
2. Check if the software is properly installed by saving to hello.pl file the following script:
print "What's your name? ";
$name=<STDIN>;
chomp($name);
print "Hello $name! It is nice to chat with you\n";
$ch=<STDIN>;
3. and run from the command prompt:
perl hello.pl
If the software is properly installed on Windows you should be able to double click hello.pl file and script should be executed too.
Installation of graphics
files
4. run from command window
ppm
at the prompt
PPM>
5. you may type help
PPM>help
6. or directly install the software by
entering the following commands
PPM>install GD
PPM>install GDGraph
PPM>install GDTextUtil
PPM>install GDGraph3d
PPM>install GDGraph-Map
It is important that you install the first
one (GD) other four are optional
7. type exit to quit PPM
PPM>exit
8. Now you may run test.pl file which will generate two graphics files test.jpg and test.png. Inspect these two files on your favorite graphical program such as PaintShop and analyze test.pl with your favorite text editor.
9. You may also run testgraph.pl file which will generate two graphics files testgraph.jpg and testgraph.png. Inspect these two files on your favorite graphical program such as PaintShop and analyze testgraph.pl with your favorite text editor.