Hi I have now used the code below to download the CSV file which it does but the rest of the script does not get executed e.g. to open the file and read the data and place it in to it databases are ideas why?
use LWP::Simple; $url = "web-server here"; $file = "/home/filename.csv"; $content = getstore($url,$file); more code here which does not run Thank you Ben On Friday 25 February 2005 15:24, Charles K. Clarkson wrote: > Benjamin Jeeves <[EMAIL PROTECTED]> wrote: > : I have a perl program that I have developed that stores some > : numbers in a mysql databases. But I need to make the script go > : to a web site download a CSV file and the process the data in > : that file. I have try lwp-download by using > : system("lwp-download the URL"); but once it has download the > : file it will end the script and will not process the new file > : > : can any body help me please. > > Avoid creating perl solutions which depend on external > commands. External commands should be a last resort unless you > are deliberately scripting to create a batch file of some kind. > > > Use the LWP modules instead of a system command. > LWP::Simple will probably get you what you need. Look for the > "get" function in the docs. Also checkout the lwpcook and lwptut > docs. > > > > HTH, > > Charles K. Clarkson > -- > Mobile Homes Specialist > 254 968-8328 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>