Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: perl file doesn't execute

by Marshall (Abbot)
on Oct 15, 2011 at 12:32 UTC ( #931649=note: print w/replies, xml ) Need Help??


in reply to perl file doesn't execute

Start with the classic "hello World" program. Make a file like this:

#!/usr/bin/perl -w use strict; print "Hello World\n";
Save that file as "Hello.pl"
do a ls -al ....you should see that file...
make sure that this file has execute permissions: chmod Hello.pl u +rx
type ls -al Hello.pl at the comand line...just will list the program... then type just Hello.pl and the program should run...

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://931649]
help
Chatterbox?
[LanX]: I know its a cult... and I repent it every time
[LanX]: But cygwin comes with path problems and powershell requires too much learning for me
[LanX]: eshell in emacs is often my resort in development
[LanX]: Thx found a solution! :)
[Eily]: I wrote "your" instead of "you're" :'(
[Eily]: I guess it means that my English is good enough that I make the same mistakes as native speakers though :/
[LanX]: your native tounge is French .... or Quebequois?
[erix]: never mind the natives

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (10)
As of 2017-03-27 16:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (320 votes). Check out past polls.