>>>>> "OL" == Odin Liu <[email protected]> writes:

  OL> I consider $_ is a value-copy of the loop-element, but as shown in
  OL> a while loop inside a for loop, it seems that $_ is a reference of
  OL> the loop-element.

it doesn't matter what you consider $_ to be. don't use it for
loops. use a lexical variable whenever you can instead of $_. it makes
your code easier to read and it will have fewer bugs.

uri

-- 
Uri Guttman  ------  [email protected]  --------  http://www.sysarch.com --
-----  Perl Code Review , Architecture, Development, Training, Support ------
---------  Gourmet Hot Cocoa Mix  ----  http://bestfriendscocoa.com ---------

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/


Reply via email to