Dear Monks,
I am trying to learn perl, using a mac (osx 10.6.6). In Terminal, when I input:
#!/usr/bin/perl
print "Hello, world!\n";
I receive:
-bash: !\n": event not found
If I just input:
print "Hello, world";
I receive:
-bash: print: command not found
I think I have the right path to perl because when I input:
which perl
I get:
/usr/bin/perl
and I when I type:
perl -v
I get:
This is perl, v5.10.0 etc.....
Any idea what I'm doing wrong????
Thanks,