rir has asked for the wisdom of the Perl Monks concerning the following question:
I have used the following logic to
identify blessed things.
$is_blessed = $x =~ /=/; # ASSERTED: ref($x)
Somewhere years ago I got the impression that a stringified reference was defined to be of the form commonly seen:
orClassname=Implementation_type(Hex_address)
TYPE(Hex_address)
But perlref for 5.8.0 says: Using a reference as a string produces both its referent's type, including any package blessing as described in perlobj, as well as the numeric address expressed in hex.
This doesn't guarantee the =, the (, the ) or the order of the other elements.
Is there any usage of stringified refs in existing code that would inhibit an alteration of their format? Or am I just a odd man out.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: stringified references
by adrianh (Chancellor) on Dec 04, 2002 at 19:32 UTC | |
Re: stringified references
by particle (Vicar) on Dec 04, 2002 at 20:19 UTC | |
Re: stringified references
by pg (Canon) on Dec 04, 2002 at 20:48 UTC | |
by demerphq (Chancellor) on Dec 05, 2002 at 00:22 UTC | |
Re: stringified references
by demerphq (Chancellor) on Dec 04, 2002 at 23:51 UTC | |
Re: stringified references
by John M. Dlugosz (Monsignor) on Dec 04, 2002 at 19:41 UTC | |
by adrianh (Chancellor) on Dec 04, 2002 at 19:51 UTC | |
Re: stringified references
by ehdonhon (Curate) on Dec 04, 2002 at 22:54 UTC |
Back to
Seekers of Perl Wisdom