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

Re: print help

by Riales (Hermit)
on Nov 01, 2012 at 18:49 UTC ( #1001860=note: print w/ replies, xml ) Need Help??

in reply to print help

print "%CALC{\$EVAL(R${c}:C2 - R${pi}:C2)}%";

Perl can't divine where your $c and $pi variable names start/end in the string, so you have to wrap them in curly braces.

Edit: Whoops, the code is right (I think), but the reasoning is wrong. Didn't notice that a colon immediately followed the variable names; that renders what I said before moot.

Edit2: Ah, toolic has pointed out the real problem already.

Comment on Re: print help
Select or Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (2)
As of 2015-11-28 06:56 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (739 votes), past polls