Hi,

can someone please explain this:


perl -e 'my $i = 0; $i = defined($i) ? (!!$i) : 0; print "i: $i\n";'
i:


Particularly:


+ Why doesn´t it print 1?

+ How is this not a bug?

+ What is being printed here?

+ How do you do what I intended in perl?

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to