in reply to Re^2: print and say
in thread print and say
Disregarding efficiency, a for loop over one element can be "useful" as a "topicalizer", i.e. locally setting $_ and shortening code. It's suggested by the Perl documentation in Switch Statements for use with the experimental when.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: print and say
by LanX (Saint) on Sep 13, 2017 at 09:08 UTC |