Perl-Sensitive Sunglasses | |
PerlMonks |
Re^3: Sorting a "tuple" by the second valueby johngg (Canon) |
on Apr 09, 2012 at 12:22 UTC ( [id://964115]=note: print w/replies, xml ) | Need Help?? |
You could combine the steps in your get_links() and sort_and_store() subroutines into one process.
Sticking to your subroutines, it would be more efficient for get_links() to return a reference to @info than the huge array itself, like so:-
I hope these points are helpful. Cheers, JohnGG
In Section
Seekers of Perl Wisdom
|
|