On 10-12-03 11:30 AM, Roche, Johnny wrote:
To my understanding, "$_" is the default input of the current running
script/program, hence, if you overwrite $_ in an inner loop, it will overwrite $_ for the
whole process. If you do not want to overwrite it, you'll need to assign $_ to a scalar
before entering the loop that will overwrite $_.
Does that help or am I way off base?
Except for foreach loops. Then it localizes $_. See `perldoc -f local`
for details.
--
Just my 0.00000002 million dollars worth,
Shawn
Programming is as much about organization and communication
as it is about coding.
The secret to great software: Fail early & often.
Eliminate software piracy: use only FLOSS.
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/