in reply to One long liner to make it short

And in any sort of real production setting, you would find a CPAN module that incorporates the logic that you need to do, and your one-liner would use that. These approaches are interesting as "golf," but even the time spent redundantly doing as little as this could be considered waste. If "it" has been done (and done well ...) before, by anyone, don't do "it" again.

Replies are listed 'Best First'.
Re^2: One long liner to make it short
by fredo2906 (Acolyte) on Feb 17, 2014 at 23:49 UTC
    Anonymous Monk, Dont really agree, in a REAL production env you do not have an internet access, do not have a local cpan repo and you cant insert any anonymous modules or code without approval which will take you a lot of time to get. You do not have any other way to do it yourself on the spot. That said, it does not help anybody adding such kind of comment.