Don't ask to ask, just ask | |
PerlMonks |
Re: Yet Another threaded find|grep perl utilityby Athanasius (Archbishop) |
on Nov 05, 2015 at 15:54 UTC ( [id://1147002]=note: print w/replies, xml ) | Need Help?? |
Hello QuillMeantTen, If you see ... things that can be made better, do post about them ... This sub caught my eye:
It can be written more succinctly using an array (or, better, a persistent array reference) for lookup:
Update: Since each array index is limited to the range 0 .. 9, it’s simpler and more efficient to just extend the array:
Hope that’s of interest,
In Section
Cool Uses for Perl
|
|