Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re^2: Extending Perl::PIE - how to have Perl snippets executed ?by Anonymous Monk |
on Jul 08, 2009 at 22:30 UTC ( [id://778429]=note: print w/replies, xml ) | Need Help?? |
Hi, I guess it would be too much to include code. You can find Perl::Pie here : http://www.pre-emptive.net/doco/pie-perl-inference-engine The problem is that I do eval from Perl::PIE package extensions and it doesn't work, while it works in main program when used directly without eval... Small Example: main program:
then I have somewhere in Perl::PIE packages snippet:
where $ref->{attribute} includes string to print that is defined in xml config :
and I don't get variables substituted in printed text by their value, so I get exactly literally the same string back : "\n****************print status every 5 secs: New_Second: Weekday:$Wday Time:$Hour:$Minute:$Second Time_Now:$Time_Now Date:$Mday/$Month/$Year" What should I do to print real values of variables and not literally their names ? Thanks in advance, Rob.
In Section
Seekers of Perl Wisdom
|
|