Re: installing LWP::UserAgent on windows



"Nospam" <nospam@xxxxxxxx> writes:

> Iam simply testing out LWP, I tried using it to find the latest perl
> version, according to the lwp manpage
>
> this command should give me thelatest perl:
>
> perl -MLWP::Simple -e '
> getstore "ftp://ftp.sunet.se/pub/lang/perl/CPAN/src/latest.tar.gz";,
> "perl.tar.gz"'
>
> However this is what it says after the first line:
>
> C:\Perl\bin>perl -MLWP::Simple -e '
> Can't find string terminator "'" anywhere before EOF at -e line 1.
>
> it says this error for basically any command I use for lwp
>

The single quotes may only be used with Unix shells. In the Windows
command line, you have to use "..." instead, and turn all "..." inside
of the onliner into qq{...}.

Regards,
Slaven

--
Slaven Rezic - slaven <at> rezic <dot> de

Visualize XML files in a Tk text widget:
http://search.cpan.org/search?mode=module&query=Tk::XMLViewer
.



Relevant Pages

  • Re: installing LWP::UserAgent on windows
    ... Iam simply testing out LWP, I tried using it to find the latest perl ... it says this error for basically any command I use for lwp ... > have produced an error message ...
    (comp.lang.perl.modules)
  • Re: installing LWP::UserAgent on windows
    ... > Iam simply testing out LWP, I tried using it to find the latest perl ... > it says this error for basically any command I use for lwp ... On Windows you need to enclose the code within double quotes, ...
    (comp.lang.perl.modules)
  • Re: Wait for background processes to complete
    ... To be able to execute commands in the background and wait for their ... The documentation I am referring to is http://perldoc.perl.org/. ... You can run a command in the background with: ... There is a general problem with perl documentation: ...
    (comp.lang.perl.misc)
  • Re: Perl For Amateur Computer Programmers
    ... >professional computer programmers could use with the same ease as Basic. ... >Perl For Amateur Computer Programmers ... Also, taking into account that you're appealing to "scientists", it ... Also, as a side note, you seem to use the noun "command" in a naive ...
    (comp.lang.perl.misc)
  • Obtaining complete Unix command line that evoked script as string
    ... If there is a more appropriate list for this, let me know; the other perl lists I've seen seem to specialised for this. ... Note this is not just the arguments of the call to the script, but everything including pipes and redirects, etc., e.g. ... Ideally the perl interpreter would grab the complete command line as its evoked and I'd access this via a variable. ...
    (perl.beginners)