Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getopt::Std and Getopt::Long at same time

Status
Not open for further replies.

yankees26

Programmer
Aug 5, 2006
7
US
Is it possible to use both Getopt::Std and Getopt::Long? Because if I use Getopt::Std first it tries to interpret long arguments and if Getopt::Long if first it tries to interpret short options.
 
You should be able to use Getopt::Long to get single character names just like Getopt::Std does. I haven't tried it yet, but take a look at the Bundling section of the docs for Getopt::Long and see if that helps.
 
Thanks, I eventually figured that out and got it to work.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top