in reply to Inserting data into a hash
my $hash; while ($WOW =~ m!<table id=.*?table.*?<a href=.*?><b>(.*?)</b></a></sp +an>.*?\(from (.*?)\)!sim) { $Uip = $1; $Uuser = $2; $hash{$Uip} = $Uuser; ... } foreach my $key ( keys %hash ) { print "$key is Uip and $hash{$key} is Uuser\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Inserting data into a hash
by ghettofinger (Monk) on Apr 15, 2005 at 17:22 UTC |