Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

Re^7: Perl bug ?

by tinita (Parson)
on Feb 06, 2013 at 13:25 UTC ( #1017426=note: print w/replies, xml ) Need Help??

in reply to Re^6: Perl bug ?
in thread Perl bug ?

I would expect the result of the && operation to be passed.
yes, and the result of something_false && something is something_false. the second part is never processed.

Replies are listed 'Best First'.
Re^8: Perl bug ?
by choroba (Chancellor) on Feb 06, 2013 at 13:32 UTC
    Oh, I see! Thanks for enlightening me.
    لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
      Maybe the confusing thing is, that not the value of $errors is the result (undef), but $errors itself, so it will be used as an alias to the subroutine. (maybe that wasn't expressed correctly but I hope it's clear what I mean)
Re^8: Perl bug ?
by vsespb (Chaplain) on Feb 06, 2013 at 14:58 UTC
    Now I get it, thanks. Agree. That's probably most amazing way to shut yourself 3 times in one line of Perl.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1017426]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2016-10-23 16:38 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (301 votes). Check out past polls.