Re: RFC: GetoptionsFromString

2006-03-16 Thread Paul Johnson
On Thu, Mar 16, 2006 at 11:50:51AM +0100, Paul Johnson wrote: On Thu, Mar 16, 2006 at 10:55:15AM +0100, Johan Vromans wrote: The basic functionality would be something like: sub GetoptionsFromString { my $string = shift; my @opts = @_; local @ARGV =

Re: RFC: GetoptionsFromString

2006-03-16 Thread Johan Vromans
[Quoting Paul Johnson, on March 16 2006, 12:22, in Re: RFC: GetoptionsF] my $result = GetOptions(@opts); wantarray ? ($result, @ARGV) : $result wantarray ? ($result, @ARGV) : @ARGV ? die(...) : $result; -- Johan