On Thu, Dec 12, 2002 at 09:39:18PM -0500, James Mastros wrote:
> On 12/12/2002 8:07 PM, Larry Wall wrote:
> > Ordinarily you'd test for subs with one of
> > 
> >     exists &Main::foo
> >     &Main::foo.exists
> I thought that was now spelt exists %Main::{&foo} -- that the symbol 
> tables were now just plain hashes?  (And what's the methody syntax for 
> testing for hashkey existance -- %hash{key}.exists should get the key 
> element of hash, then run it's exists method, logicly.  Is it 
> %hash.exists('key')?
> 
> > I suppose one could set up a transactional structure in which "can"
> > actually does the side effects hypothetically, with the option of
> > committing later.  Sort of what a "try" block would like to be when
> > it grows up...
> Or hypothetical variables in a non-regex context...
> 
>       -=- James Mastros


Or this:

http://search.cpan.org/src/SIMONW/Whatif-1.01/README

--Dks

Reply via email to