in reply to Re: Key/Value pair from GET
in thread Key/Value pair from GET
#!perl use LWP::Simple; use strict; use warnings; #get the values out my %categories = (); my $page = get 'http://www.handango.com/PlatformSoftware.jsp?platformI +d=1&siteId=1&zsortParams=true'; while ($page=~m/class="smallprint">([^"]*)"\s+siteId=([^>]*)</sg) { $categories{$1} = $2; print "[$1] and [$2]\n"; } foreach my $idkey (keys %categories) { print "$idkey,$categories{$idkey}\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Still empty...here is a live and working example
by tadman (Prior) on Jun 06, 2002 at 08:17 UTC | |
by inblosam (Monk) on Jun 06, 2002 at 16:20 UTC |