On Wednesday, June 19, 2002, at 09:57 , Timothy Johnson wrote:
[..]
> But just for
> the sake of argument, here's one approach:
On a more serious note, you cats may want to try
perldoc -m Getopt::Std
and walk through what is in the code - since it
has a really nice structure of the for
t
sticking with GetOpts as much as possible, because it probably has thought
of all the gotchas and that way you don't reinvent the wheel, just the axle.
-Original Message-
From: Harry Putnam
To: [EMAIL PROTECTED]
Sent: 6/20/02 9:36 AM
Subject: Re: getopt that handles more argum
Timothy Johnson <[EMAIL PROTECTED]> writes:
> sub GetMultiOps{
> $ref = $_[0];
> while($ARGV[0] !~ /^-\w$/){
> $_ = shift @ARGV;
> push @{$ref},$_;
> }
> }
>
> ### END #
>
> Which should theoretically give you one array for each option and one array
> as a cat