Beefy Boxes and Bandwidth Generously Provided by pair Networks RobOMonk
No such thing as a small change
 
PerlMonks  

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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (9)
As of 2014-04-18 01:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (460 votes), past polls