Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Any way to call GetOptions with evaluated / interpoltated args ?

by 1nickt (Canon)
on Nov 26, 2018 at 16:16 UTC ( [id://1226358]=note: print w/replies, xml ) Need Help??


in reply to Any way to call GetOptions with evaluated / interpoltated args ?

Hi, one way might be to use Getopt::Long's OO interface. From the doc:

use Getopt::Long; $p = Getopt::Long::Parser->new; $p->configure(...configuration options...); # Do some computing here to come up with list of option descriptio +ns if ($p->getoptions(...options descriptions...)) ... if ($p->getoptionsfromarray( \@array, ...options descriptions...)) + ...

Hope this helps!


The way forward always starts with a minimal test.
  • Comment on Re: Any way to call GetOptions with evaluated / interpoltated args ?
  • Download Code

Log In?
Username:
Password:

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

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

    No recent polls found