Don't ask to ask, just ask | |
PerlMonks |
Re: More Effecient Method Chainingby ikegami (Patriarch) |
on Apr 21, 2021 at 22:20 UTC ( [id://11131561]=note: print w/replies, xml ) | Need Help?? |
You shell out multiple times. The performance of the Perl code seems inconsequential. This post will cover some cleanups (but leaves the important question of parallelism unanswered). I don't think
has a defined behaviour. You want
And the grep { /^\w+:/ } is completely redundant. Backticks returns the captured output as lines in list context, so
can be replaced with
It's not equivalent since it leaves the line feeds in, but that's not an issue for you. Cleaned: You could even combine the two maps, but I wouldn't.
Seeking work! You can reach me at ikegami@adaelis.com
In Section
Seekers of Perl Wisdom
|
|