in reply to Lost contents of arrays...
Remember: the value of $/ is a string, not a regex. awk has to be better for something. :-)
That said, you can switch:
to something like:print SUM2 foreach @sorted_recs;
to dereference the array (take a look at perlref, and at tye's References quick reference for more info)foreach my $array_ref( @sorted_recs ) { print SUM2 foreach ( @$array_ref }; }
-enlil
|
|---|