develooper Front page | perl.perl6.language | Postings from May 2001

Re: 1 until defined(getvalue()); return it;

Thread Previous | Thread Next
From:
Michael G Schwern
Date:
May 30, 2001 10:54
Subject:
Re: 1 until defined(getvalue()); return it;
Message ID:
20010530185417.C2146@blackrider.blackstar.co.uk
On Wed, May 30, 2001 at 12:38:50PM -0500, David L. Nicol wrote:
> while pseudocoding something I realized that it would be really
> cool if there was another magical default shelf, like $_  or _ but
> subtly different, that stores, if lexically used, the object of the
> most recent "defined" or "exists" --
> 
> or maybe even the most recently referred to scalar, just the way
> "it" works in English.  "it" would change much more often than $_
> does.

*quiver* Please god no.  Its difficult enough to follow the twists and
abuses of $_ when reading code.

That aside, could you put together a code example of what this wins?


-- 

Michael G. Schwern   <schwern@pobox.com>    http://www.pobox.com/~schwern/
Perl6 Quality Assurance     <perl-qa@perl.org>	     Kwalitee Is Job One
Death follows me like a wee followey thing.
	-- Quakeman

Thread Previous | Thread Next


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