Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Why my variable is not 0 ?

by Tommy (Chaplain)
on Jan 08, 2016 at 23:20 UTC ( [id://1152359]=note: print w/replies, xml ) Need Help??


in reply to Why my variable is not 0 ?

This doesn't answer your question, but is rather an attempt to help you do what it looks like you're after. I think what you are looking for is:

$ppp = defined $porter ? 'defined ' : 'undefined';

If you have perl 5.10 or better:

use 5.10; $ppp = $porter; $ppp //= 0;
Tommy
A mistake can be valuable or costly, depending on how faithfully you pursue correction

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2024-04-26 04:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found