Have you tried Getopt::Declare?
http://www.greglondon.com/iperl/html/iperl.htm#17.2.Getopt::Declare|outline

"Mike T. Machenry" wrote:
> 
> The arguments I interested in pulling out need to be used before I can know
> the names of the options. So I can't use the left over @ARGV.
> 
> -mike
> 
> On Wed, Jun 15, 2005 at 01:38:01PM -0500, Andy Lester wrote:
> > On Wed, Jun 15, 2005 at 12:38:21PM -0400, Mike T. Machenry ([EMAIL 
> > PROTECTED]) wrote:
> > > in between them. I want to get an array of the non-option args e.i.:
> > >
> > > @ARGV = qw(--x 5 --bar = 6 7 --foo 8 9)
> > > myfunc() = (7, 9);
> >
> > After you run GetOptions, @ARGV should only contain those args that
> > weren't handled.  I'm pretty sure.
> >
> > --
> > Andy Lester => [EMAIL PROTECTED] => www.petdance.com => AIM:petdance
> >
> > _______________________________________________
> > Boston-pm mailing list
> > [email protected]
> > http://mail.pm.org/mailman/listinfo/boston-pm
> 
> _______________________________________________
> Boston-pm mailing list
> [email protected]
> http://mail.pm.org/mailman/listinfo/boston-pm

-- 
Greg London
Zoran Corporation
781-638-7541
 
_______________________________________________
Boston-pm mailing list
[email protected]
http://mail.pm.org/mailman/listinfo/boston-pm

Reply via email to