Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Re: Passing Options

by trs80 (Priest)
on Aug 12, 2002 at 17:14 UTC ( #189552=note: print w/replies, xml ) Need Help??


in reply to Re: Passing Options
in thread Passing Options

I would change the \@release into \$release and use : colon or pipe separated values to send multiple arguments without repeating the option. Then simply create your array with a split.
use Getopt::Long; our $realeases; GetOptions( 't=s' => \ our $target, 'b=s' => \ our $buildtype, 'r=s' => \ $releases ); our @releases = split(/\:/,$releases);
Program is called with:
perl script.pl -r 1:2:3 -b blah -t blah

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (5)
As of 2020-07-06 02:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?