in reply to perl -e problem

This error message puzzles me, and I can't really imagine any reason for it.

Do check however, whether the minus sign in -e is a real minus sign, not just some look-alike character.

Update You may also want to check for perl being an alias or perl-function. (In bash, you do that with the command type perl.) I recently had some bad experience with a shell function set up in /etc/profile I didn't know of.

Replies are listed 'Best First'.
Re^2: perl -e problem
by dantheman1210 (Beadle) on May 20, 2005 at 21:50 UTC
    Ran this:
    cnow> type perl perl is /usr/local/bin/perl
    Looks like it is going to the right place.
Re^2: perl -e problem
by dantheman1210 (Beadle) on May 20, 2005 at 21:24 UTC
    I am typing in the command myself, not copy and paste, so can't think of how it could be anything other than a regular minus sign.