in reply to "bareword found near www" in oneliner

windows support only double quotes. So you must escape all quotes inside your script.
perl -MURI::Escape -MLWP::Simple -e"$t =get \"http://www.cgiscript.net +/encrypt_index.htm\"; print uri_unescape $t;"
It is untested, I did not use windows.
Boris

Replies are listed 'Best First'.
Re: Re: "bareword found near www" in oneliner
by Anneq (Vicar) on Feb 09, 2004 at 00:24 UTC
    Windows supports double AND single quotes.
    perl -MURI::Escape -MLWP::Simple -e"$t =get 'http://www.cgiscript.net/ +encrypt_index.htm\'; print uri_unescape $t;"
    Anne
      Sure, windows supports qouble and single quotes inside a perl script. But I was talking about quoting mechanisms of your shell ( cmd.exe ). Sorry if this was not obvious.
      Boris
        I actually tested use of single quotes inside of double quotes at my shell prompt before sending the previous message. The OP did, after all, state that he was having problems with the command prompt.

        Windows does indeed support single quotes AND double quotes at the command prompt, invoking perl with the "-e" option.

        Anne
Re: "bareword found near www" in oneliner
by Abigail-II (Bishop) on Feb 09, 2004 at 10:59 UTC
    So you must escape all quotes inside your script.
    Nah, you'd just use single quotes inside your script.

    Abigail