Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re^4: It LOOKS right...

by ikegami (Pope)
on May 31, 2011 at 18:20 UTC ( #907521=note: print w/ replies, xml ) Need Help??

in reply to Re^3: It LOOKS right...
in thread It LOOKS right...

If the #! line isn't correct then your code will be passed to /bin/sh, not Perl


$ sh: ./ usr/bin/perl: bad interpreter: No such file or directory

and that's what produced the error messages.

No. If the error messages originated from sh, they would look like

$ . sh: =: command not found sh: ./ line 3: syntax error near unexpected token `{' sh: ./ line 3: `if ($count <= 20) {'

or (requires changing shebang to #!/bin/sh)

$ ./ line 2: =: command not found ./ line 3: syntax error near unexpected token `{' ./ line 3: `if ($count <= 20) {'

The error the OP gave is indeed from perl.

Comment on Re^4: It LOOKS right...
Select or Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2015-11-28 17:18 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (743 votes), past polls