At 18:29 +0200 2002.04.09, Bart Lateur wrote: >On Tue, 9 Apr 2002 10:09:44 -0400, Chris Nandor wrote: > >>What I would prefer is a separate module that would get called first, so >>you could do something like: >> >> #!/usr/bin/perl >> use Mac::ARGV; >> >>and it would automatically manipulate @ARGV before anyone else got to it. >>The module would have to work on any platform, so it could be installed >>anywhere, though it would only do something under MacPerl. > >Hmm... So where would you put the code? Could this be acceptable for an >implementation? > > package Mac::ARGV; > > sub _macMakeArgv { > ... # copy rest of that sub here > } > > sub import { > _macMakeArgv() if $^O =~ /MacOS/; # which sets @ARGV > } > > 1;
Without thinking too much about it at the moment, something like that would probably work, yes. -- Chris Nandor [EMAIL PROTECTED] http://pudge.net/ Open Source Development Network [EMAIL PROTECTED] http://osdn.com/