There's more than one way to do things | |
PerlMonks |
Re^4: do $n exist in grep?by Marshall (Canon) |
on May 12, 2021 at 20:46 UTC ( [id://11132520]=note: print w/replies, xml ) | Need Help?? |
Interesting:
I personally would not make a hash key optional like that. I would always return the hash key and then an undef value for that key if it is not valid. But as is often said "there is more than one way to do it". It could also be that I haven't thought this completely through and haven't considered what the calling code looks like and how it processes this returned info.
In Section
Seekers of Perl Wisdom
|
|