Robert's Perl Tutorial
So you typed in
perl myfirst.pl and you
My first Perl script on the screen. If you saw "bad command
or filename" then either you haven't installed Perl or perl.exe is not in your path.
Probably the latter. Reboot, then try again.
If you saw
Can't open perl script "xxxx.pl": No such file or directory
then perl is defintely installed, but you have either got the name of the script wrong or
the script is not in the same directory as where you are trying to run it from. For
example, maybe you saved in script in
c:\windows and you are in
so of course Perl complains it can't find the script. Could you? Well, don't expect
Perl to then. You don't have to run the script from the directory in which it resides, but
it is easier.