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

Re: Adding 2 + 2

by mkmcconn (Chaplain)
on Feb 10, 2001 at 22:51 UTC ( [id://57681]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to Adding 2 + 2

2+2 illustrates some interesting behavior.
  1. ++$_ && $_++ && print eval() + eval();
  2. $_++; print eval() + eval() unless ( $_ + 1 == $_++ );
  3. for (2..2){$_ = $_ + $_ and print;}
  4. $a = 2; print "$a + $a = ", $$b + $$b; BEGIN{ $b = \$a }
  5. my $num = 2; $num =~ s/(2)/$1 + $1/gxe; print $num;

mkmcconn

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://57681]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.