in reply to Mixing OR with conditional operator

Try adding 'use warnings'. ( Use of uninitialized value in numeric ne (!=) )


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority". The enemy of (IT) success is complexity.
In the absence of evidence, opinion is indistinguishable from prejudice. Suck that fhit
  • Comment on Re: Mixing OR with conditional operator

Replies are listed 'Best First'.
Re^2: Mixing OR with conditional operator
by jockel (Beadle) on Nov 19, 2017 at 10:30 UTC

    Hmm.

    I get no warning for row 5, only for row 7.

    Use of uninitialized value $test in concatenation (.) or string at /tmp/test2.pl line 7.

    Still, shouldn't the '1' before the OR evaluate first, and just skip everything after the OR?

    -----BEGIN PERL GEEK CODE BLOCK----- Version: 0.01 P++>*$c--->---P6 > R >++++$M+>+++$O+++>+++$MA->+++$E > PU->++BD->-C+>+$D+>+$S->+++X >+WP >+++MO!PP n?CO--PO!>!(!)o?G!A--OLC--OLCC--OLJ--Ee !Ev-Eon-uL++>*uB!uS!uH-uo!w->!m+ ------END PERL GEEK CODE BLOCK------