Why all the fuss? Often, you would *want* to access that lexical after the loop terminates, for instance to check how it terminated.
-----Original Message----- From: Michael G Schwern [mailto:[EMAIL PROTECTED]] Sent: Monday, January 21, 2002 2:59 PM To: Melvin Smith Cc: Larry Wall; Damian Conway; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: Night of the Living Lexical (sequel to Apoc4: The loop keyword) On Mon, Jan 21, 2002 at 02:44:40PM -0500, Melvin Smith wrote: > At 12:32 PM 1/21/2002 -0500, Michael G Schwern wrote: > >On Sun, Jan 20, 2002 at 10:58:34PM -0800, Larry Wall wrote: > >> : while( my $line = <FILE> ) { > >> : ... > >> : } > >> > >> That still works fine--it's just that $line lives on after the while. > > > >This creeping lexical leakage bothers me. While it might make the > > "lives on", ... "creeping lexical", I feel the same way, we must find some > way to kill these... :) If we consult the existing literature... bullet to the head fire electrocution ("Day of the Dead") Going to the foreign journals: lawn mower ("Braindead" aka "Dead Alive") blender ("Braindead" again) sharpened shovel to the head ("Dellamorte Dellamore" aka "Cemetary Man") -- Michael G. Schwern <[EMAIL PROTECTED]> http://www.pobox.com/~schwern/ Perl Quality Assurance <[EMAIL PROTECTED]> Kwalitee Is Job One It sure is fun masturbating. http://www.unamerican.com/