Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^2: Dualvars besides $!

by davido (Archbishop)
on Jan 27, 2014 at 18:05 UTC ( #1072259=note: print w/ replies, xml ) Need Help??


in reply to Re: Dualvars besides $!
in thread Dualvars besides $!

A value for "true" is also dualvar:

perl -MScalar::Util -E 'say Scalar::Util::isdual(!0)'

...outputs '1', indicating the test was true.


Dave


Comment on Re^2: Dualvars besides $!
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (6)
As of 2014-10-25 09:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (142 votes), past polls