|We don't bite newbies here... much|
map and grep or clear code?by ghenry (Vicar)
|on Jan 31, 2012 at 09:58 UTC||Need Help??|
ghenry has asked for the
wisdom of the Perl Monks concerning the following question:
I'm trying to see which is easier for maint. I have the following and wondering if I should replace it with map and grep. Not sure why, but find myself not reaching for them ever. This turns letters on your phone dialpad to numbers:
I also need to make this work properly so I'm not returning the amount of matches grep has.
Advice? I prefer my first version for when I come back later.
Walking the road to enlightenment... I found a penguin and a camel on the way.....
Fancy a firstname.lastname@example.org? Just ask!!!