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

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.