Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: two + 2 not equal 4!

by sierpinski (Hermit)
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.


Comment on Re: two + 2 not equal 4!
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://851105]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (9)
As of 2014-09-17 10:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (72 votes), past polls