in reply to A very beginner problem

This implies that you actually have Perl on the box, but your shebang line is not pointing to the Perl interpreter. At the command line (assuming you're using a *nix type system), type which perl. This will tell you the location of your Perl interpreter and you'll want to update your shebang to match this information.

If you're working on a Windows box, ./first.pl is probably not legal syntax and you'll either have to have a newer version of Windows that recognizes the file extension from the command line (Win2K does this, for example), or you will always have to type perl first.pl to get it to run.

Cheers,
Ovid

Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.