in reply to Does this look like Perl code?

Yup. It looks like it could do with a #!/bin/sh at the top of it. A bit bad of the original author that it doesn't have that already, mind you.....! Find them, and kick some a$$! :)

Replies are listed 'Best First'.
Re^2: Does this look like Perl code?
by Aristotle (Chancellor) on Jul 18, 2006 at 14:39 UTC

    Note that you don’t need the shebang if it’s just #!/bin/sh – the kernel will invoke the shell on files that neither are binary objects nor have a shebang.

    So that would be a clue – if you get a script that gets invoked directly as an executable (like, say, a CGI script) instead of being passed to an interpreter, and it doesn’t have a shebang, then it’s always a /bin/sh script.

    Makeshifts last the longest.