Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 01-21-2003, 08:16 PM   #1
LQ Newbie
Registered: Jan 2003
Location: Los Angeles
Distribution: SuSE 8.2
Posts: 26

Rep: Reputation: 15
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?


Old 01-22-2003, 04:39 PM   #2
LQ Newbie
Registered: Nov 2002
Location: Zemun, Serbia
Distribution: DEBIAN
Posts: 18

Rep: Reputation: -2
if those subs are in that module and that module and you can call it non object-oriented way than just do Xmms::sort, Xmms::next and so on.
Old 01-22-2003, 08:16 PM   #3
LQ Newbie
Registered: Jan 2003
Location: Los Angeles
Distribution: SuSE 8.2
Posts: 26

Original Poster
Rep: Reputation: 15
Thanks mire! That did it.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
vim 'n' lynx: command line option to search for string Samsara Linux - Software 6 01-02-2013 06:36 PM
Command line option -F means what? TSynergy Linux - Newbie 5 11-15-2005 08:01 PM
Kdetv command line (missing?) option AliDigitaly Linux - Software 0 09-30-2005 05:11 PM
PERL script OK at command line, not in browser alvo Programming 4 12-19-2004 08:28 AM
Perl shell-out to script dunna work. Works on command line. Why? jlangelier Linux - Software 1 08-28-2004 02:00 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:48 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration