Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re: Override Data Display Method

by maverick (Curate)
on Mar 07, 2002 at 23:43 UTC ( #150178=note: print w/replies, xml ) Need Help??

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 :)


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.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://150178]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (2)
As of 2018-03-25 02:05 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (299 votes). Check out past polls.