in reply to PerlCritic, $_ and map

Silly PerlCritic. It complaints about a modifying $_ that isn't harmful, but is silent about trying to remove whitespace from the end of the string twice.

You do realize that 'chomp' does a subset of what s/\s+$// does (I assume your s/\+s$// is a typo) and is hence redundant?

Replies are listed 'Best First'.
Re^2: PerlCritic, $_ and map
by ikegami (Patriarch) on Feb 13, 2009 at 01:01 UTC
    Usually, not always, as I've already mentioned.