Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: stringified references

by ehdonhon (Curate)
on Dec 04, 2002 at 22:54 UTC ( [id://217619]=note: print w/replies, xml ) Need Help??


in reply to stringified references

$is_blessed = $x =~ /=/;       # ASSERTED: ref($x)

It would seem to me that isn't such a good idea since it would be very easy to get a false positive regardless of the perl version...

my $x = 'This code = boring'; $is_blessed = $x =~ /=/; print "Wrong" if $is_blessed;

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://217619]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (2)
As of 2024-04-19 20:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found