Re: installing LWP::UserAgent on windows




"Nospam" <nospam@xxxxxxxx> wrote in message
news:FVdue.328$z61.292@xxxxxxxxxxxxxxxxxxxxxxx
> 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
>

On Windows you need to enclose the code within double quotes ("), not within
single quotes (') as you have tried. This also means that any double quotes
inside the string of code need to be escaped. Try something like:

perl -MLWP::Simple -e "getstore
\"ftp://ftp.sunet.se/pub/lang/perl/CPAN/src/latest.tar.gz\",\"perl.tar.gz\"";

For me that produced no error - though it seemed to hang. Perhaps I was just
not being sufficiently patient.

Cheers,
Rob


.



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: executing a file
    ... syntax error. ... My command now has quotes as per your example. ... In fact, you may need the full path fo perl.exe (and, of course, to the perl ...
    (microsoft.public.access.formscoding)
  • Re: executing a file
    ... Afraid I don't know enough about Perl to be able to help. ... Doug Steele, Microsoft Access MVP ... My command now has quotes as per your example. ...
    (microsoft.public.access.formscoding)
  • Command line fed to Perl was Re: File::Find again
    ... In Linux bash shell those quotes tell the shell to not ... It's a different case here ie not a var, instead it's a command line that's ... such command line being passed to Perl. ...
    (perl.beginners)
  • Re: installing LWP::UserAgent on windows
    ... > Iam simply testing out LWP, I tried using it to find the latest perl ... according to the lwp manpage ... > it says this error for basically any command I use for lwp ...
    (comp.lang.perl.modules)