Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^2: "2" | "8" = ":" and 2|8=10

by ikegami (Patriarch)
on Nov 04, 2011 at 20:19 UTC ( [id://936009]=note: print w/replies, xml ) Need Help??


in reply to Re: "2" | "8" = ":" and 2|8=10
in thread "2" | "8" = ":" and 2|8=10

Note: This doesn't take magic into account. The bitwise ops sure do.

print is_num($|), "\n"; # 0 $|=1; print is_num($|), "\n"; # 0 print 1 | "A", "\n"; print "1" | "A", "\n"; print $| | "A", "\n"; # Acts as if $| is numeric

Note: SvUOK(x) will always be false if SvIOK(x) is false, and SvNIOK(x) is more efficient than SvIOK(x) || SvNOK(x).

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (3)
As of 2024-04-25 23:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found