From: "Pfeiffer, Richard" <[EMAIL PROTECTED]> > I have what I think is a trick question and is causing me a bit of > trouble: > > My command line looks similar to this: > command.pl -r"z:\Tech Team" -p"/Tools Team" -f"File Found > Today.txt" -v"RDP 1.2_A" > > What I'm trying to check for is to make sure when people run my > script, they have each option surrounded by the double quotes, as you > see above.
If you happen to use Windows you may get the original command line like this: use Win32::API; { my $GetCommandLine = Win32::API->new('kernel32', 'GetCommandLine', [ ] , 'P' ); $cmdline = $GetCommandLine->Call(); } If you are using a *nix you are out of luck. The shell has processed the parameters and stripped the quotes before exec()uting your script and passing it the parameters array. Jenda =========== [EMAIL PROTECTED] == http://Jenda.Krynicky.cz ========== There is a reason for living. There must be. I've seen it somewhere. It's just that in the mess on my table ... and in my brain. I can't find it. --- me -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]