Syntactic Confectionery Delight | |
PerlMonks |
Re^2: Converting quoted strings to numbers in arrayby haukex (Archbishop) |
on Apr 24, 2017 at 13:01 UTC ( [id://1188760]=note: print w/replies, xml ) | Need Help?? |
I'm not sure if using a ternary operator inside map is considered un idiomatic, but it seems to work. I'd say it's idiomatic, and can even be shortened since $_ is used as the default argument for many functions (including oct) and for regexes that aren't bound to something via =~:
In Section
Seekers of Perl Wisdom
|
|