in reply to Can I ask Perl if an object will stringify?

This is not a solution to your immediate problem but might be a solution to your overarching problem. no stringification is a module that (fatally) prevents stringification of references.

  • Comment on Re: Can I ask Perl if an object will stringify?

Replies are listed 'Best First'.
Re^2: Can I ask Perl if an object will stringify?
by haukex (Archbishop) on May 25, 2015 at 09:52 UTC

    Hi Corion,

    Thanks for the idea, I hadn't seen that pragma before! It looks like you're right that it might not solve my question directly, but since my intention was to warn people about them accidentally having stringified a reference into something like "HASH(0x9c5d2d9)", a value which probably isn't useful in this context, those users might also be able to use this pragma to avoid mistakes like that.

    Thanks and Regards,
    -- Hauke D