in reply to Re: How to process multiple input files?
in thread How to process multiple input files?
update: never mind. In production code I would have simply written defined to be sure, but looking through the docs I see that this construct is special even in the case of explicit assignment. I know that the quick while(<>) tests for defined, or started to at some specific version of Perl (I remember the classic Camel book explaining how lines are never False because they end in "\n"), but wasn't sure that applied when assignment was being made.
In general, I rely less on special cases and magical meanings in well-written production code than in a quick one-liner. Declaring variables, and not using $_ much falls into the same category, so I somehow was thinking the magic was not in effect.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: How to process multiple input files?
by jwkrahn (Abbot) on May 23, 2011 at 06:44 UTC | |
by John M. Dlugosz (Monsignor) on May 23, 2011 at 17:22 UTC | |
by Anonymous Monk on May 23, 2011 at 18:48 UTC | |
by John M. Dlugosz (Monsignor) on May 23, 2011 at 19:22 UTC | |
by Anonymous Monk on May 23, 2011 at 20:17 UTC |