Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Executing a Perl program

by shmem (Chancellor)
on Nov 27, 2017 at 20:20 UTC ( [id://1204355]=note: print w/replies, xml ) Need Help??


in reply to Executing a Perl program

#!/usr/bin/perl: No such file or directory

The shell reports the whole shebang line as a non-existent file? Something's wrong with that line. What's there before the shebang? Is there by chance a <Ctrl>H or such? Delete that line and write it again.

Then,

#!/usr/bin/perl -w use 5.18.2; #use strict; #use warnings; #use utf8; say "Hello";

you should not comment out use strict; and use warnings; until your program runs and you are dead sure it does what it is meant to do with no ways left to fail.

perl -le'print map{pack c,($-++?1:13)+ord}split//,ESEL'

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1204355]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (8)
As of 2024-04-19 08:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found