Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: use: command not found error

by Krambambuli (Curate)
on May 03, 2007 at 21:09 UTC ( [id://613481]=note: print w/replies, xml ) Need Help??


in reply to use: command not found error

What about line #1 ?

If I'm right, you just have the shebang wrong, something like

#/usr/bin/perl

instead of

#!/usr/bin/perl

Sigh ;)

Replies are listed 'Best First'.
Re^2: use: command not found error
by Anonymous Monk on Apr 15, 2011 at 04:57 UTC
    I got the same problem. Later I found that the #!/usr/bin/env perl -w was not in the first line. It was like this
    # comments # comments # comments #!/usr/bin/env perl -w
    Then I changed the above to
    #!/usr/bin/env perl -w # comments # comments # comments
    It worked.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2024-04-24 22:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found