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
A mistake can be valuable or costly, depending on how faithfully you pursue correction
|
---|
In Section
Seekers of Perl Wisdom