The problem is the syntax (see perlintro). Its like writing
$ perl -le " print foo bar "
Can't locate object method "foo" via package "bar" (perhaps you forgot
+ to load "bar"?) at -e line 1.
$ perl -e "warn foo bar "
Can't locate object method "foo" via package "bar" (perhaps you forgot
+ to load "bar"?) at -e line 1.
$ perl -e "warn bar->foo "
Can't locate object method "foo" via package "bar" (perhaps you forgot
+ to load "bar"?) at -e line 1.
arguments to functions need to be seperated by commas, and strings should generally be quoted
If you had quoted them
And it says A comma is missing. |