Ah, I guess it's just an old bug. I am running Perl 5.004 with Getopt::Long 
2.19. I guess I'll just bug my sysadmin. Thanks a lot, Ronald.

-mike

On Wed, Jun 15, 2005 at 02:05:28PM -0400, Ronald J Kimball wrote:
> On Wed, Jun 15, 2005 at 12:38:21PM -0400, Mike T. Machenry wrote:
> 
> > sub process { ... }
> > GetOptions ('<>' => \&process);
> > 
> > produces the following error:
> > 
> > Error in option spec: "CODE(0x80e4bbc)"
> > 
> > Does anyone know how I can pull out the non-option arguments without 
> > needing 
> > to have some named option present.
> 
> It works for me:
> 
> #!/usr/local/bin/perl -w
> 
> use strict;
> 
> use Getopt::Long;
> 
> sub process { print "@_\n" }
> 
> GetOptions ('<>' => \&process);
> 
> __END__
> 
> % perl opts.pl foo
> foo
> % 
> 
> Getopt::Long version 2.34
> 
> 
> Ronald
>  
> _______________________________________________
> 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

Reply via email to