Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
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 drinking their drinks and smoking their pipes about the Monastery: (7)
As of 2015-07-30 04:17 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 (269 votes), past polls