in reply to lwp-request issue.

Well, duh. You're using '&&'. Which in the shell short-cuts the same way it does in Perl. Replace the '&&' with ';' just as you would do in Perl.

Replies are listed 'Best First'.
Re^2: lwp-request issue.
by bart (Canon) on Aug 23, 2010 at 10:02 UTC
    This looks like DOS to me, so I'd rather put each get statement on a separate line.
      Bart Indeed is a batch (.cmd) but as I'm using LWP-REQUEST (GET) already tried one get per line but it doesn't work, I tried the following script:
      Echo. get -S -d http://www.yahoo.com get -S -d http://www.google.com get -S -d http://www.ciudad.com.ar get -S -d http://www.gmail.com get -S -d http://www.clarin.com get -S -d http://www.claro.com.ar get -S -d http://www.mail.com get -S -d http://www.facebook.com Echo.
      But I only get the result of the first one like this:
      GET http://www.yahoo.com --> 302 Found GET http://ar.yahoo.com/?p=us --> 200 OK
        Oh, of course (smacks forehead).

        get is a batch file, so you have to call it when used from another batch file, or else it'll just do a "goto" instead. I have no idea what Microsoft was thinking when they designed this, uh, "feature".

        call get -S -d http://www.yahoo.com call get -S -d http://www.google.com rem etc...
Re^2: lwp-request issue.
by CountZero (Bishop) on Aug 18, 2010 at 13:14 UTC
    Very nice how you could still give a question totally devoid of any Perl content, a Perl twist!

    ++

    CountZero

    A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

Re^2: lwp-request issue.
by Gn0m3 (Initiate) on Aug 19, 2010 at 07:59 UTC
    JavaFan I tried replacing the '&&' with ';' but this is the result I get: GET ; --> 400 URL must be absolute