in reply to Re^2: Memory Leaks and %+
in thread Memory Leaks and %+
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"; }
|
|---|