in reply to exists (EXPR), autovivified and conditionals

The fact that it is not autovivified simply means that testing a non existant key with exists() will not create it. You don't indicate how your first example didn't work, but I suspect you expected to see it print 'Sub whatever called'. The only reason this doesn't work is that your subs are returning strings that you aren't doing anything with, change the returns to prints and I expect you will see what you were looking for.


We're not surrounded, we're in a target-rich environment!
  • Comment on Re: exists (EXPR), autovivified and conditionals