[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[MacPerl] Evaluating expressions with regexp



I want to evaluate expressions in an text, the expressions are in the form:
<#execute:(expression)#>, like <#execute: 933.47+273#>.

I am using "s/<#execute:(.*?)#>/\1/goe" to find and evaluate this and 
it works -- kind of.
Problem is it evaluates to "SCALAR(0x8b9159c)" instead of just plain "1206.47".

How do I fix this?
/Peder

Peder Axensten
mailto:f95-pax@nada.kth.se (Umea, Sweden)

# ===== Want to unsubscribe from this list?
# ===== Send mail with body "unsubscribe" to macperl-request@macperl.org