in reply to Is it possible to include GetOpt flags in $0
If you happen to use Windows you may get the raw commandline with
use Win32::API; my $GetCommandLine = Win32::API->new('kernel32', 'GetCommandLine', [ ] + , 'P' ); $cmdline = $GetCommandLine->Call();
In other case you will probably want something like:
BEGIN { @ORIGINAL_ARGV = @ARGV }; use GetOpt::Long ... ...
I don't think you should add the options to $0 itself, but I guess you may if you want to.
HTH, Jenda
|
|---|