I've got a script which is using some bash commands to suppliment my perl. I would like to turn the whole script into a perl script to make it a little more efficent, and to learn some more about perl. Here are the things that are going on in particular.
I have the script take in a URL at the command line. Then I use wget to download the file at the end of the URL (a web page) and write it to a file, then I open the file and read through it with a while loop one line at a time. I went hunting around for a way for perl to download the webpage, but I haven't found anything. (My research abilities aren't that great with perl, I mostly just try google searches. I don't really know how CPAN works, and I know there is some manual that can be searched, but I don't know what it is called or how to search it. If anyone has pointers on that, I would be most greatful for the information).
If I can get the webpage downloaded with perl, then I expect I could just avoid writing to a file, and then would be able to have an array read the whole thing in (If I recall from a previous script I made the array will default to breaking the elements into every new line.)
So basically I'm wondering how to replace wget with a perl solution (I have a bunch of other questions, but I would rather beat on them myself for at least awhile, as I will learn more that way.)
Thanks,
Michael