Looks correct. You may not have the proper line endings in your script which has been known to cause problems on OS X. I copied and pasted what you had into a file and it ran as normal, I use vim installed through fink on my 10.2.3 laptop. The "return" line would be incorrect though.

http://danconia.org

David Gilden wrote:
Here's a quick question:

#!/usr/bin/perl -w

use strict;

print "Hello, Perl!\n";
# return "Hello, Perl!\n"; # tried this as well


bash2.05a % perl Hello\ World.pl > test-hello.txt
bash2.05a % bbedit test-hello.txt
test-hello.txt is empty, what did I miss?
Thanks!
Dave

====================================================
Cora Connection: Your West African Music Source
Resources, Recordings, Instruments & More!
<http://www.coraconnection.com/> ====================================================


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

  • OSX Perl David Gilden
    • Wiggins d'Anconia

Reply via email to