Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: stringified references

by ehdonhon (Curate)
on Dec 04, 2002 at 22:54 UTC ( #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? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2022-05-23 12:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (82 votes). Check out past polls.

    Notices?