There's more than one way to do things | |
PerlMonks |
Re^3: My 'perldar' tells me there is a 'better' solution for this list operationby johngg (Canon) |
on Nov 04, 2006 at 18:02 UTC ( [id://582256]=note: print w/replies, xml ) | Need Help?? |
It works fine for me. In what way did it not work for you? I did not show the use strict; and use warnings; I always put at the top of my scripts in my first post. Here's the whole script again, it's output and some info on my platform and perl version
You may well be right regarding efficiency, I haven't run any benchmarks. The object of the post was to show an alternative method to those already given. Cheers, JohnGG
In Section
Seekers of Perl Wisdom
|
|