Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: two + 2 not equal 4!

by sierpinski (Chaplain)
on Jul 24, 2010 at 02:13 UTC ( #851105=note: print w/replies, xml ) Need Help??


in reply to two + 2 not equal 4!

This works correctly too:
#! /usr/bin/perl -w use strict; sub two {2} printf "two + 2 = %d\n",(two) + 2;
Parens have precedence.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://851105]
help
Chatterbox?
[choroba]: ♪ ♫ ♬ Moon on the water... the fire in the sky... ♪ ♫ ♬

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (12)
As of 2017-07-25 09:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (369 votes). Check out past polls.