Think about Loose Coupling | |
PerlMonks |
Re: LWP::UserAgent downloading zip filesby 1nickt (Canon) |
on Sep 10, 2017 at 16:28 UTC ( [id://1199033]=note: print w/replies, xml ) | Need Help?? |
Hi, welcome to the Monastery. Your code seems to have a number of problems.
Here's how I would do it (using the more modern, lighter-weight, simpler HTTP::Tiny to make the http request):
After you get your CSV file successfully onto disk, make sure to use a proper module for reading it, such as Text::CSV. Hope this helps!
The way forward always starts with a minimal test.
In Section
Seekers of Perl Wisdom
|
|