Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

brusimm's scratchpad

by brusimm (Pilgrim)
on Dec 21, 2006 at 18:16 UTC ( #591152=scratchpad: print w/ replies, xml ) Need Help??

A big hearty Thanks out to everyone that helped me out with my Regular Expressions tutorial:
jdporter, gaal, ww, ysth, jonadab, hossman, tye, ww, Solo, Not_a_Number, muba & demerphq.
Especially jdporter for our conversations & his patience and the idea of this form of thanking everyone for taking the time to interact with my nodes.
if you're on this list, and you've suddenly found extra XP points one day, that's cause each day I'm blowing my votes on one of these members, .. my way of saying thanks.. for what that's worth. It's my morning ritual these days.



BELOW IS JUST A MIND GAME,
PAY IT NO HEED, but if you tinker and find it gives you 0 through 10, let me know! It's been noted it should not give consistent results across different OS's or computers.
$i = $i++; # #print "\n"; # This is a noop.. effectively being 0. print "Test 0 will equal: $i\n"; $i = 0; # $i = ++$i; # print "Test 1 will equal: $i\n"; # ++ adds 1, then $i is lo +oked at, and ++ added to it. $i = 0; # $i = $i++ + ++$i; # print "Test 2 will equal: $i\n"; $i = 0; $i = ++$i + $i++; # print "Test 3 will equal: $i\n"; # $i = 0; # $i = ++$i + ++$i; # print "Test 4 will equal: $i\n"; # $i = 0; # $i = ++$i + $i++ + $i++; # print "Test 5 will equal: $i\n"; # $i = 0; # $i = ++$i + $i++ + ++$i; # print "Test 6 will equal: $i\n"; # $i = 0; # $i = ++$i + ++$i + ++$i; # print "Test 7 will equal: $i\n"; # $i = 0; # $i = $i++ + $i++ + ++$i + ++$i ; # print "Test 8 will equal: $i\n"; # $i = 0; # $i = $i++ + ++$i + ++$i + ++$i ; # print "Test 9 will equal: $i\n"; # $i = 0; # $i = ++$i + ++$i + ++$i + $i++ ; # print "Test 10 will equal: $i\n"; # print "\n";
TEST ZONE: Trying to be a good user!!
/node_id=595955
Perl Editors Win32
Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (6)
As of 2014-10-01 23:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    What is your favourite meta-syntactic variable name?














    Results (41 votes), past polls