Hi. Perl newbie here. I'm on a MBP using Leopard (10.5.8). Perl is
pre-installed: /usr/bin/perl.
I can't get a simple "Hello world" script to work. Here's the script
(saved as test.pl).
#!/usr/bin/perl -w
print "Hello world!\n";
Permissions are set to 755. In a terminal application (iTerm) I changed
directory to the location of the script, and typed
perl test.pl
Nothing happens -- i.e. no "Hello world!", and I get a new command prompt.
Typing
perl -v
produces:
This is perl, v5.8.8 built for darwin-thread-multi-2level
...
and so on.
Typing
perl -c Test.pl
yields
Test.pl syntax OK
So how come no "Hello world!"?
I really want Perl to have me at Hello World. What should I do?
- Mark
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/