Re: LWP::Simple returns scalar; how to populate an array from it?

2002-03-27 Thread John Bodoni
"Agustin Rivera" wrote: > Try adding > > my @html=split(/\n/, $html); > foreach my $line(@html) > { > #process > } Thank you, Agustin, that did the trick! I played with many regexp combinations, but all more complicated than what you suggested. No wonder Perlsters are always grinning... J

Re: LWP::Simple returns scalar; how to populate an array from it?

2002-03-27 Thread Agustin Rivera
Try adding my @html=split(/\n/, $html); foreach my $line(@html) { #process } Agustin Rivera Webmaster, Pollstar.com http://www.pollstar.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

LWP::Simple returns scalar; how to populate an array from it?

2002-03-27 Thread John Bodoni
Hello, all. To snag a webpage, I'm using: use LWP::Simple; my $html = get(http://address.goes.here); # Outlook Express will probably mangle the webpage address above Awright, that's fine and it's working, but it's not quite what I need. I need to process the contents of that page line by l