Re: installing LWP::UserAgent on windows
- From: "Sisyphus" <sisyphus1@xxxxxxxxxxxxxxxxx>
- Date: Thu, 23 Jun 2005 17:08:36 +1000
"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
.
- Follow-Ups:
- Re: installing LWP::UserAgent on windows
- From: A. Sinan Unur
- Re: installing LWP::UserAgent on windows
- References:
- installing LWP::UserAgent on windows
- From: Nospam
- Re: installing LWP::UserAgent on windows
- From: Sisyphus
- Re: installing LWP::UserAgent on windows
- From: Nospam
- Re: installing LWP::UserAgent on windows
- From: Sisyphus
- Re: installing LWP::UserAgent on windows
- From: Nospam
- installing LWP::UserAgent on windows
- Prev by Date: Re: directions to good perl module tutorial
- Next by Date: Re: Q: Any module to convert a Perl distro into a Debian package?
- Previous by thread: Re: installing LWP::UserAgent on windows
- Next by thread: Re: installing LWP::UserAgent on windows
- Index(es):
Relevant Pages
|