in reply to Re: Meaning of //
in thread Meaning of //

Except when $flag is false.
C:\usr\local\share\PassThru\perl>perl -le "print +1//55"
1

C:\usr\local\share\PassThru\perl>perl -le "print +undef//55"
55

C:\usr\local\share\PassThru\perl>perl -le "print +0//55"
0

Replies are listed 'Best First'.
Re^3: Meaning of //
by LanX (Saint) on Oct 17, 2019 at 23:28 UTC
    > Except when $flag is false.

    You mean defined but false, but you are right, I was wrong.

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery FootballPerl is like chess, only without the dice