View Single Post
  #1  
Old 5th December 2004, 05:51 PM
Mojojojo77 Offline
Registered User
 
Join Date: Dec 2004
Posts: 15
Making a Perl script an executable, I think.

O.K., I just started learning Perl and am trying to do a "Hello , world" program. I'm using Perl, v5.8.6 on Fedora Core 2. The code I am doing is this...

!#/usr/local/bin/perl

print "Hello , world!\n";

chmod a+x helloword

And I am getting the "permission denied" message in the shell when I try to run it. So I am guessing it is the chmod line that is wrong. I've tried changing it around, but I either get the same message or the "no such file" message when I really screwed around with it. So do I have a syntax error here, or is something going wrong elsewere? Because I really do not know what else I can try.
Reply With Quote