in reply to Re: 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
The /r is useful when you want to keep the original
It is indeed useful and thanks for mentioning it (++). For some reason the fact that it exists never seems to stick with me! However, in Lady_Aleena's case it might not be an option because her sig says
my perl versions are 5.28.1 local and 5.8.8 on web host.
and /r only came in at 5.13.2 (according to perlver).
As an even further aside it's a bit surprising to find anyone offering 5.8.8 as part of a service today. I am not aware of any O/S still shipping that as standard.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Perl::Critic says don't modify $_ in list functions and other things
by Bod (Parson) on Nov 19, 2020 at 17:38 UTC | |
by marto (Cardinal) on Nov 19, 2020 at 17:52 UTC | |
by Bod (Parson) on Nov 19, 2020 at 17:56 UTC |
In Section
Seekers of Perl Wisdom