in reply to Does this look like Perl code?

Looks like a shell script to me - Bourne or BASH probably.
Jack