in reply to Re: Stumped with $_ being modified
in thread Stumped with $_ being modified
Although using local will solve your problem, I'd stay away from it. I'd really suggest steering away from using local declared variables.That is really not good advice. local does not "declare" a variable, it localizes its value. This is a critically important capability -- as young_david's problem clearly demonstrates.
jdporter
The 6th Rule of Perl Club is -- There is no Rule #6.
|
|---|