Or, that wonderful scalar range operator again...
my %data = (); my $query; while (<FH>) { if (my $result = /^"\@QUERY:(.*?)"$/ .. /^"\@ENDQUERY"$/) { next if $result =~ /E/; if ($result == 1) { $query = $1; next; } push @{$data{$query}}, $_; } }
In reply to Re: $_ and nested while loops w/angle operator
by pbeckingham
in thread $_ and nested while loops w/angle operator
by alienhuman
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |