in reply to Re: How To Count Lines In File?
in thread How To Count Lines In File?
So, the meaning of -p is performed by textually including the loop around the actual code, so beginning with "}" will close the -p's while loop, and the final "{" will ballance the closing brace at the end of the expansion.
I never thought about that. I always just figured that built-in looping construct was done on a syntactic boundary, like:
only done in the parse-tree level, not by simply generating more source text!while (<>) { eval $option_e; print }
So... that's not documented or to be relied on, right?
—John
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: How To Count Lines In File?
by PodMaster (Abbot) on Jan 27, 2003 at 08:15 UTC | |
by John M. Dlugosz (Monsignor) on Jan 28, 2003 at 02:11 UTC | |
by Aristotle (Chancellor) on Jan 28, 2003 at 11:39 UTC |