Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

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]
[ambrus]: Corion: no, these days like half of the times the professors write the articles in TeX (with formatting that's mostly acceptible but not usually good), and the other half of the time it's people who are already co-authors of the article that write it
[erix]: there is lyx

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (8)
As of 2017-09-26 10:54 GMT
Find Nodes?
    Voting Booth?
    During the recent solar eclipse, I:

    Results (293 votes). Check out past polls.