Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^2: Adding 2 + 2

by jdporter (Canon)
on Jan 30, 2007 at 17:59 UTC ( #597417=note: print w/ replies, xml ) Need Help??


in reply to Re: Adding 2 + 2
in thread Adding 2 + 2

It often strikes me as a little strange (or unfortunate) to use array ref/deref for this. The scalar version is only one character longer:

print "the answer is ${\(2+2)}\n";
A word spoken in Mind will reach its own level, in the objective world, by its own weight


Comment on Re^2: Adding 2 + 2
Download Code
Replies are listed 'Best First'.
Re^3: Adding 2 + 2
by shmem (Canon) on Jan 31, 2007 at 10:24 UTC
    The scalar version is only one character longer
    golfer habits...

    --shmem
    But I might be parling heck.

    _($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                                  /\_¯/(q    /
    ----------------------------  \__(m.====·.(_("always off the crowd"))."·
    ");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (11)
As of 2015-07-07 20:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (93 votes), past polls