Is there a way I can pull multiple items out of a page scrape?

I know I can do this:

my $data = get("http://foo";) or die "ERROR: $!";
$data =~ / this is a (.*) page/i;
my $scrape1 = $1;

What I want to do is pull five bits of information off the page.

I'm reasonably confident this would work:

my $data = get("http://foo";) or die "ERROR: $!";
$data =~ / this (.*) a (.*) page/i;
my $scrape1 = $2;
my $scrape2 = $1;

But I'd rather avoid loading the whole string that contains the
five bits of information into $data at one time, because it's
huge and unwieldy. Is there any way to get a page and
then scrape it in a slightly more organized manner?

Thanks,

Tara


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to