CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Fun With Perl: Perl Quizzes - Learn Perl the Fun Way: Will you fall into the trap?: Edit Log



Paul
Enthusiast

Feb 10, 2002, 4:54 AM


Views: 34173
Will you fall into the trap?

I'm sure some people will cheat by just executing the code but what does the following print and why:

print (1 + 2) + 4;

....and how about:

print (1 + 2) + (4 + 4 + (3 + 3));


(This post was edited by WiredON.net on Feb 10, 2002, 4:57 AM)


Edit Log:
Post edited by Paul (Enthusiast) on Feb 10, 2002, 4:54 AM
Post edited by Paul (Enthusiast) on Feb 10, 2002, 4:57 AM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives