Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Why my variable is not 0 ?

by Tommy (Chaplain)
on Jan 08, 2016 at 23:20 UTC ( #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? | Other CB clients
Other Users?
Others surveying the Monastery: (7)
As of 2022-12-07 10:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?