Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

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]
[erix]: damn the fucking idiot can't even spell separation

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (9)
As of 2018-06-20 20:50 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (117 votes). Check out past polls.