lwp:: what came before get

J

joez3

Hi,
I need to write a perl script using perl version 5.005 on windows to
download a file. I orginally wrote the perl scipt using a new version
of perl and LWP. I had line of code that was:
$response = $ua->get($downloadURL, ':content_file' => $storLocation);
I orginally wrote this on a system that had perl 5.6.1 and it worked
fine, but when I try to use this on the older perl it fails with:
Can't locate object method "get" via package "LWP::UserAgent" at
downloadvcclient.pl line 91.
So how can I rewite this to work with the older version of perl?

Thanks,
zim
 
J

J. Gleixner

Hi,
I need to write a perl script using perl version 5.005 on windows to
download a file. I orginally wrote the perl scipt using a new version
of perl and LWP. I had line of code that was:
$response = $ua->get($downloadURL, ':content_file' => $storLocation);
I orginally wrote this on a system that had perl 5.6.1 and it worked
fine, but when I try to use this on the older perl it fails with:
Can't locate object method "get" via package "LWP::UserAgent" at
downloadvcclient.pl line 91.
So how can I rewite this to work with the older version of perl?

ahhhh.. look at the documentation for the version of LWP::UserAgent
you have installed... It is installed, right?

perldoc LWP::UserAgent
 
T

Tad McClellan

I need to write a perl script using perl version 5.005 on windows


Do you mean on Windows 98?

That was contemporary with that version of perl...

I orginally wrote the perl scipt using a new version
of perl and LWP.


What is stopping you from installing a version of perl
from the current millenia?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top