Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

Re^2: Why Perl boolean expression sometimes treated as lvalue?

by Anonymous Monk
on Feb 08, 2013 at 13:22 UTC ( #1017815=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download

  1. or download this
    $ perl -MO=Deparse,-p -le " $a= 1 && 2; print $a; "
    BEGIN { $/ = "\n"; $\ = "\n"; }
    Can't modify logical and (&&) in scalar assignment at -e line 1, near 
    -e had compilation errors.
    (($a && $b) = 3);
  2. or download this
    2012         /* FALL THROUGH */
    2024                         ? "non-lvalue subroutine call"
    2025                         : OP_DESC(o))),
    2026                      type ? PL_op_desc[type] : "local"));

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1017815]
[shmem]: karlgoethebier: es ist theologisch umstritten, ob jesus an christi himmelfahrt tatsächlich besoffen und mit bollerwagen zu seinem vater aufgebrochen ist
[karlgoethebier]: shmem: Ja ischweis
[karlgoethebier]: shmem: Vielleicht hat er in den Bollerwagen gebrochen?
[karlgoethebier]: shmem:Ach so. Bollerwagen ist eigentlich was für Kinder. Bei uns fahren sie mit Traktoren und Feuerwehrwagen rum...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (11)
As of 2017-05-25 12:37 GMT
Find Nodes?
    Voting Booth?