Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Help required on Getopt::Long

by zeni (Beadle)
on May 16, 2012 at 09:54 UTC ( [id://970794]=note: print w/replies, xml ) Need Help??


in reply to Help required on Getopt::Long

This is because -help is treated as string for the option "abc". even though '=' is not used the next string is tied for "abc" option.

Also, when i executed this code, i got the following error:

Undefined subroutine &main::Getoptions called.

Always include use strict and use warnings in your code. And the subroutine should be GetOptions

Replies are listed 'Best First'.
Re^2: Help required on Getopt::Long
by Anonymous Monk on May 16, 2012 at 10:38 UTC
    read "Getoptions" as "GetOptions". Sorry for the typo.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://970794]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (3)
As of 2024-04-25 06:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found