in reply to Re^4: Why is Dumper returning "!!1" for true file test?
in thread Why is Dumper returning "!!1" for true file test?

In the case of !!1 it seems to only be just a performance thing, because all values are just 1 , i.e. any later casting would produce the same effect/caching of types.

I was confused because prior to this I only heard of !!0 as dualvar and I'm kinda sure I read it in the perldocs.

Cheers Rolf
(addicted to the Perl Programming Language :)
see Wikisyntax for the Monastery

Replies are listed 'Best First'.
Re^6: Why is Dumper returning "!!1" for true file test?
by ikegami (Patriarch) on Jan 22, 2024 at 14:23 UTC

    In the case of !!1 it seems to only be just a performance thing

    I think so. It is slightly different — I can get pPOK+pIOK+pNOK, but I can't also get IOK+NOK+POK — so there could be difference, but I don't know of any.