PDA

View Full Version : How do I run a Perl program?


norbapro
03-21-2003, 02:15 AM
I'm a clueless newbie, so please bear with me here. I need to know how to run a Perl program? Here it is:

#!/usr/bin/perl -w
Print ("Hello world!\n");

would I need to have access to a server to run this, or can i just run it on my computer without connecting to the internet? Whenever i open it (i saved it with a .pl extension), it opens in Windows Media Player, which is unable to play it. Could somebody point me in the right direction, because I'm really stumped?

chrisvmarle
03-21-2003, 06:50 AM
You need Perl installed.
Have a look at ActiveState (http://www.activestate.com) for ActivePerl

That is a Perl version for windows

Mzzl, Chris

mellin
03-21-2003, 08:42 PM
And in *nix*, type "perl -cw program.pl" in shell.