I completely agree yours is more readable that the OPs alternate version. But even more readable is:
my $regexp = qr/(\d+)\s+(\d+)/; while(<$fh>) { my( $value1, $value2 ) = /$regexp/ or next; print "GOT $value1 $value2\n"; }
In reply to Re^3: Memory Leaks and %+
by BrowserUk
in thread Memory Leaks and %+
by MaphsterB
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |