in reply to Re^4: "Method is not in the class but it is there!"
in thread "Method is not in the class but it is there!"

Change the -el to -le. :-)

-- Ken

Replies are listed 'Best First'.
Re^6: "Method is not in the class but it is there!"
by AnomalousMonk (Archbishop) on Sep 05, 2011 at 16:34 UTC

    Also, the inclusion of  -wMstrict as a general rule in such command line invocations can be very enlightening:

    >perl -wMstrict -el "print 'hi there!';" Bareword "l" not allowed while "strict subs" in use at -e line 1. Execution of -e aborted due to compilation errors.