Perl Error In Option Spec Long
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Getopt::Long::Descriptive - Error in option spec: up vote 3 down vote favorite I am new to writing usage statements in perl and am having some errors. See the error messages pasted below. The beginning of my script is pasted below. Please let me know if you spot any syntax errors, or anything else I am doing wrong. Thank you $ perl make_keggTable.pl -i ko2genes.pau Error in option spec: "input file|i=s" $ perl make_keggTable.pl --help Error in option spec: "input file|i=s" use strict; use warnings; use Data::Dumper; use Getopt::Long::Descriptive; #use Getopt::Long; #use Pod::Usage; ## usage and help info my ( $opt, $usage ) = describe_options( 'make_keggTable.pl %o', [ 'input file|i=s', 'file of NCBI locus IDS to Kegg KOs' ], [ 'OrgCode|o=s', 'kegg organism code(Pseu.PA14=pau, Pseu.PA01=pae,Salm.14028S=seo,Salm.LT2=stm,Ecoli.MG1655=eco)'], [], [ 'verbose|v', 'print with verbosity' ], [ 'help', 'print usage message and exit' ], ); if ($opt->help) { print $usage->text, "\n"; } perl share|improve this question edited Sep 25 '13 at 14:10 toolic 30.6k43468 asked Sep 25 '13 at 9:20 user2814482 126111 add a comment| 1 Answer 1 active oldest votes up vote 2 down vote accepted As perl and Getopt::Long follows the option syntax standard of Unix, the option name can't contain spaces. Drop the space between input file and you could compile. share|improve this answer edited Sep 25 '13 at 9:30 answered Sep 25 '13 at 9:25 Xu Ding 1,618624 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Facebook Sign up using Email and Password Post as a guest Name Email Post as a guest Name Email discard By posting your answer, you agree to the privacy policy and terms of service. Not the answer you're looking for? Browse other questions tagged perl or ask your own question. asked 3 years ago viewed 1166 times a
for Help Receive Real-Time Help Create a Freelance Project Hire for a Full Time Job Ways to Get Help Ask a Question Ask for Help Receive Real-Time Help Create a Freelance Project Hire for a Full Time Job Ways to Get Help Expand Search Submit Close Search Login Join Today Products BackProducts Gigs Live Careers Vendor Services Groups Website Testing Store Headlines Experts Exchange > Questions > Perl Getopt::Long - Error in option spec Want to Advertise Here? Solved Perl Getopt::Long - Error in option spec http://stackoverflow.com/questions/19000963/getoptlongdescriptive-error-in-option-spec Posted on 2008-05-09 Unix OS Perl 1 Verified Solution 7 Comments 2,704 Views Last Modified: 2013-11-17 I'm trying to run a script I wrote on a Linux Box on an AIX machine but it seems to error our, it works flawlessly on Linux and the syntaxt looks fine but when I run it on the aix box I https://www.experts-exchange.com/questions/23390740/Perl-Getopt-Long-Error-in-option-spec.html get: Error in option spec: "z|zcat|zip|compressed:s{2
blog http://www.eth0.us/node/204 posts OpenSSL updates for ALL versions Barnyard2 error Suricata build error Archipel build error - sqlalchemy Archipel build error - numpy Archipel build error - python-setuptools Ossec ar.conf issue Linksys 0-day Exploit Red October Malware perl error Campaign 0-Day in Java 1.7 More Custom Search User login Username * Password * Request new password Mytop error in option spec long|! with RHEL or CentOS 5.3 Submitted by eth00 on Mon, 04/27/2009 - perl error in 08:08 Mytop has started to break recently when upgrading from RHEL or CentOS 5.x to 5.3. It appears that some of the perl modules have change.d There error is: #mytop Error in option spec: "long|!" The fix for this is to edit the mytop script and comment out the line containing long|! pico /usr/bin/mytop Run a search for long|! and comment out the following line: "long|!" => \$config{long_nums}, Start mytop and you should be fine! Articles and guides: General system administration Everything provided is provided without any warranty, if you are not sure what something does test it in a development environment first!