On Thu, Sep 30, 2010 at 22:25, Mark <herrpoe...@hailmail.net> wrote:
>  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


That is very odd, it should be working.  Just to make sure it is not
some weirdness with iTerm (I use iTerm, so that shouldn't be the
problem), try using Apple's Terminal.app instead.



-- 
Chas. Owens
wonkden.net
The most important skill a programmer can have is the ability to read.

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to