Le lundi 20 juin 2005 à 09:09, Eric Wilhelm écrivait: > # The following was supposedly scribed by > # A. Pagaltzis > # on Monday 20 June 2005 08:57 am: > > >I don???t see how being able to *optionally* say something like > > > > GetOptions( > > [EMAIL PROTECTED], > > # ... > > ); > > > >would detract from anything at all. > > I don't think you really need to be able to pass a different array to > GetOptions(). After all, that really is just meant for parsing > command-line arguments, which aren't going to be found anywhere besides > @ARGV.
Well, that's a strong assumption. Perl::Tidy, for instance, uses Getopt::Long to parse its parameter list, which has nothing to do with @ARGV. And see http://rt.cpan.org/NoAuth/Bug.html?id=7964 for the kind of trouble that happens when a library uses another library that has a global configuration. In that case, local @ARGV = @whatever is not enough. -- Philippe "BooK" Bruhat The best thing about being apart is getting together again. (Moral from Groo The Wanderer #39 (Epic))