develooper Front page | perl.perl6.language | Postings from January 2002

Re: Apoc4: The loop keyword

From:
Michael G Schwern
Date:
January 21, 2002 09:32
Subject:
Re: Apoc4: The loop keyword
Message ID:
20020121173224.GB708@blackrider
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
language simpler, the proliferation of left-over lexicals seems
sloppy.


-- 

Michael G. Schwern   <schwern@pobox.com>    http://www.pobox.com/~schwern/
Perl Quality Assurance	    <perl-qa@perl.org>	       Kwalitee Is Job One
"Hey kids!  I'm Beefy the Elf!	Follow me to Meattart Land!"
"It's like chewing on a lemon cow!"
"I like Meattarts 'cause they're meaty!"
"I like Meattarts 'cause... wait.  These suck."
	http://www.goats.com/archive/000608.html



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About