in reply to Re: Extending Perl::PIE - how to have Perl snippets executed ?
in thread Extending Perl::PIE - how to have Perl snippets executed ?
... use Pie::KnowledgeBase; use Pie::Engine; use Pie::KnowledgeBase::Dumper; use Data::Dumper; require 'time_utilities.pl'; # For misc. functions (e.g. time/da +te stamp routines) use Time::HiRes('gettimeofday'); use vars qw($Time $Second $Minute $Hour $Mday $Wday $Day $Month $Year) +; ...
... print " ----------------- " . $ref->{attribute} . "\n" +; ...
<rule name="print status every 5 secs"> <condition attribute='main::new_second(5)' type="time" trigger="1"> +1</condition> <action attribute="\n****************print status every 5 secs: New +_Second: Weekday:$Wday Time:$Hour:$Minute:$Second Time_Now:$Time_Now +Date:$Mday/$Month/$Year" type="print">1</action> </rule>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Extending Perl::PIE - how to have Perl snippets executed ?
by spazm (Monk) on Jul 13, 2009 at 18:02 UTC |