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

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

Thread Next
From:
David L. Nicol
Date:
May 30, 2001 10:42
Subject:
1 until defined(getvalue()); return it;
Message ID:
3B15302A.5E9916DD@kasey.umkc.edu





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.






-- 
                      David Nicol 816.235.1187 dnicol@cstp.umkc.edu
                                                     # die smiling;


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