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.