perlquestion
rir
I have used the following logic to
identify blessed things.
<code>
$is_blessed = $x =~ /=/; # ASSERTED: ref($x)
</code>
<p>
Somewhere years ago I got the impression that a
stringified reference was defined to be of the form
commonly seen:
<code>
Classname=Implementation_type(Hex_address)
</code>
or
<code>
TYPE(Hex_address)
</code>
<p>
But perlref for 5.8.0 says:
<em>
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.
</em>
<p>
This doesn't guarantee the <code>=</code>, the <code>(</code>, the <code>)</code> or the order of the
other elements.
<p>
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.