Hi Ben, ----- Original Message ----- From: Ben Miller Sent: 21.04.2004, 7:49 Uhr
>Hello, > >This is my first post and I'm working on my first real Perl program. >I'm trying to feed an array using information scraped off another >web page. I've got the scraping working no problem, but each of the >words I pull from the other page are treated as part of a single >variable. For example: > >while (my $tag = $stream->get_tag("a")) { my $result = >($stream->get_trimmed_text("/a")); print "$result\n"; >} > > >The while loop pulls all text which sits between 'a' tags on the >page being scraped. I'd like to force $result to accept each word as >part of an array. Any clues? You could assign an array reference to $result: my $result = [($stream->get_trimmed_text("/a"))]; if get_trimmed_test() returns a list. HTH, Jan -- There are two major products that come out of Berkeley: LSD and UNIX. We don't believe this to be a coincidence. - Jeremy S. Anderson -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>