in reply to Re: Why is Dumper returning "!!1" for true file test?
in thread Why is Dumper returning "!!1" for true file test?
I just started using the latest version of Perl from version 5.32. I hadn't heard about the new booleans. Hadn't heard about !!0 and !!1 either.
These are definitely a weird beast. When I did print Dumper !!1 I expected it to print 1 but in fact it printed $VAR 1= !!1. This must be the dual var nature you refer to.
Is there a basic tutorial on all this?
$PM = "Perl Monk's";
$MC = "Most Clueless Friar Abbot Bishop Pontiff Deacon Curate Priest Vicar Parson";
$nysus = $PM . ' ' . $MC;
Click here if you love Perl Monks
|
---|