in reply to Re^2: foreach my $question (@perlmonks){}
in thread foreach loop not retrieving all data.
This is essentially your code
my @tables = ( { 'h2' => [ .. ], 'div/a' => [ .. ], }, ); for my $table( @tables ){ my $oneh2 = $table->['h2']->[0]; my $onediv = $table->['div/a']->[0]; }
You're asking why this doesn't look for multiple h2s or divs -- do you see why it doesn't?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: foreach my $question (@perlmonks){}
by marcoss (Novice) on Jun 19, 2012 at 11:00 UTC | |
by Anonymous Monk on Jun 19, 2012 at 11:09 UTC | |
by Anonymous Monk on Jun 19, 2012 at 15:31 UTC | |
by Anonymous Monk on Jun 19, 2012 at 16:15 UTC | |
by marcoss (Novice) on Jun 20, 2012 at 07:47 UTC | |
|