in reply to Re^2: Why is Dumper returning "!!1" for true file test?
in thread Why is Dumper returning "!!1" for true file test?
And is confusing because you need to mentally negate it again, while !! is a common idiom.
But the performance question occurred to me already I kind of expected constant folding to happen.
ha, indeed! :)
DB<5> p B::Deparse->new()->coderef2text( sub{!!1} ) { use feature ... ; # shortened !0; } DB<6> p B::Deparse->new()->coderef2text( sub{!!0} ) { use feature ... ; # yadda !1; } DB<7> p $] 5.038002
Cheers Rolf
(addicted to the Perl Programming Language :)
see Wikisyntax for the Monastery
|
---|