in reply to Re^2: Is it possible to control scalar(%h) when %h is a tied hash?
in thread Is it possible to control scalar(%h) when %h is a tied hash?

You missed what he is saying. If you are using a version greater than 5.8.3, you can add a method, SCALAR, that gets called in exactly the circumstance you were asking about. No changing the module at all. (I haven't tested it, blah blah, just going off what the parent said, etc).
  • Comment on Re^3: Is it possible to control scalar(%h) when %h is a tied hash?

Replies are listed 'Best First'.
Re^4: Is it possible to control scalar(%h) when %h is a tied hash?
by fizbin (Chaplain) on Oct 20, 2004 at 17:02 UTC
    Oh, no, I got that, but am stuck on an ActivePerl build of 5.6.1. I should have made it explicit when replying to someone mentioning SCALAR. (which, I'll admit, I didn't know about)
    -- @/=map{[/./g]}qw/.h_nJ Xapou cets krht ele_ r_ra/; map{y/X_/\n /;print}map{pop@$_}@/for@/