in reply to Override Data Display Method

I've never tried doing such a thing, but this looks like you could use tie and produce the output you want in the FETCH method.

OTOH this may be more trouble that it's worth and cause more problems. I'd just live with calling $donut->print and move on to more important things :)

HTH

/\/\averick
perl -l -e "eval pack('h*','072796e6470272f2c5f2c5166756279636b672');"

Replies are listed 'Best First'.
Re^2: Override Data Display Method
by tadman (Prior) on Mar 07, 2002 at 23:46 UTC
    To maybe clarify further: "tie too complicated". If tie is involved, it has to be transparent, which seems to be virtually impossible to effect "at a distance".

    It's too bad that there can't be a scalar-type FETCH method assigned to tied hashes for when they are retrieved in a scalar context.