I'll take the liberty of answering for ikegami and guess that
my @b = apply { $_ = uc($_);} @a;
is just a quick example of the use of apply put together to be consistent with the preceding code
my @b = map { $_ = uc($_); $_ } @a;
which was itself just a quick example put together to demonstrate a particular problem. I'd be very surprised if ikegami suggested it | either for production code.
Give a man a fish: <%-{-{-{-<
In reply to Re^3: Perl::Critic says don't modify $_ in list functions and other things
by AnomalousMonk
in thread Perl::Critic says don't modify $_ in list functions and other things
by Lady_Aleena
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |