Dear Perl Dancer Experts,<div> I am new to perl dancer. Thank you for the dancer framework. I could ramp-up quickly w.r.t using dancer framework to develop simple web-pages.</div><div>
<br></div><div>I am trying to develop a webpage where I would like to have contents of a webpage refreshed (say after every x seconds). </div><div><br></div><div>I briefly went through the mailing lists and other sites and I figured out that AnyEvent from Twiggy might be one solution to do it.</div>
<div><br></div><div>I wanted to solve the problem by redirecting a route to itself after every x seconds.</div><div><br></div><div>something like :</div><div><br></div><div><div>get '/' => sub {</div><div><br>
</div>
<div> $w = AnyEvent->timer(after => 1, interval => 15, cb => sub {</div><div><br></div><div> # do some database retrievals</div><div><br></div><div> redirect "/";</div><div><br>
</div><div> });</div><div><br></div><div> template 'index';</div><div><br></div><div>};</div></div>
<div><br></div><div><br></div><div>Could you please suggest if this will work , or if there is any other better and easier way to do it. </div><div><br></div><div>Also : When I try installing Twiggy by using cpanm Twiggy, the installation gets stuck at the point "Building and testing Test-SharedFork-0.21 ...". I am using a windows 64 bit machine with </div>
<div>strawberry perl, with version - 5.10.1.</div><div><br></div><div>could you please help with a solution for this?</div><div><br></div><div>Thank you in advance</div><div><br></div><div>Best Regards</div><div>Ajay MK</div>
<div><br></div><div><br><div> <br><div> </div></div></div>