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;
--
Bart.