in reply to \" on the WinXP Command Line

What's wrong with Getopt::Long?

Replies are listed 'Best First'.
Re: Re: \" on the WinXP Command Line
by NetWallah (Canon) on Feb 26, 2004 at 19:02 UTC
    Roger: Getopt::Long won't work because perl (and program modules) only see what the command shell passes them, after the command shell is done interpreting (in this case, mis-interpreting) the args.

    BrowserUK and others have provided a method to reach around the command shell and get what the user originally typed in.

    Update: On second thought - it probably IS a good idea to use Getopt::Long after getting the args from the Windows Kernel.

    "Experience is a wonderful thing. It enables you to recognize a mistake when you make it again."