in reply to Escaping characters on win2000's cmd.exe

1. you bust out your shell's manual, and learn that it ain't *nix (you can't escape spaces, you need to "quote" stuff).

2. this is also documented in perlrun, don't you ever perl -e " die scalar gmtime " ?

my $arg = q{butteer "scotch"}; $arg =~ s{"}{\\"}g; system (qq{blah "$arg" ....});
update: also, perldoc -f system

____________________________________________________
** The Third rule of perl club is a statement of fact: pod is sexy.

Replies are listed 'Best First'.
Re: Re: Escaping characters on win2000's cmd.exe
by NaSe77 (Monk) on Aug 22, 2002 at 12:25 UTC
    thanks that helped and it works now

    ----
    NaSe
    :x