perl command line option question
I'm trying to execute commands using the "-e" command line option on a perl module, however the commands in question are "next" and "sort" which appear to be a reserved word in perl, thereby causing problems. For example, when I execute:
perl -MXmms -e sort
I get:
sort is now a reserved word at -e line 1.
Or if I execute:
perl -MXmms -e next
I get:
Can't "next" outside a loop block at -e line 1.
I've tried putting single- and double-quotes around the commands, but to no avail. How can I get around this problem without actually changing the source code?
Thanks.
Afshin
|