in reply to Re^2: Perl::Critic says don't modify $_ in list functions and other things
in thread Perl::Critic says don't modify $_ in list functions and other things
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 Section
Seekers of Perl Wisdom