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: <%-{-{-{-<
In reply to Re^3: 36 Conditions in If Statement [sendhelp]]
by AnomalousMonk
in thread 36 Conditions in If Statement [sendhelp]]
by UpTide
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |