in reply to Re^2: 36 Conditions in If Statement [sendhelp]]
in thread 36 Conditions in If Statement [sendhelp]]
using $_ for (0 .. 2) scares me though
Be not afraid! This is a bedrock Perl idiom. The $_ variable is completely localized (update: and aliased! — it can be used to assign to the for-loop list item if that item is an lvalue) (I believe the term is "topicalized") within the for statement or statement block. Do you have any specific concern about this usage?
Give a man a fish: <%-{-{-{-<
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: 36 Conditions in If Statement [sendhelp]]
by UpTide (Novice) on Feb 07, 2017 at 17:34 UTC | |
by AnomalousMonk (Archbishop) on Feb 07, 2017 at 18:19 UTC | |
by haukex (Archbishop) on Feb 08, 2017 at 08:43 UTC |