http://qs321.pair.com?node_id=390168


in reply to Re: sorting inside specific
in thread sorting inside specific

Take a look at push.

@array = (@array,$_); # copies the entire array every time
push @array, $_; # does not copy the entire array every time