in reply to foreach loop and creating files with "$_"
Take a look at $_ in perlvar. Frankly, I don't hesitate to use $_. But then most of my code is fairly straight forward procedural code without much scoping challenge. I am sure someone here has run into an issue or two making use of $_, but I certainly have not.
I personally don't like the 'visual' of $temp$_, so would handle it differently, but I don't see anything functionally wrong with it.
...the majority is always wrong, and always the last to know about it...
Insanity: Doing the same thing over and over again and expecting different results...
A solution is nothing more than a clearly stated problem...otherwise, the problem is not a problem, it is a facct
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: foreach loop and creating files with "$_"
by james28909 (Deacon) on Jul 22, 2014 at 03:54 UTC | |
by wjw (Priest) on Jul 22, 2014 at 04:35 UTC | |
by toolic (Bishop) on Jul 22, 2014 at 13:41 UTC | |
by Anonymous Monk on Jul 22, 2014 at 19:38 UTC |