<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jul 2, 2013 at 4:56 PM, Anand Meher <span dir="ltr"><<a href="mailto:kvmsanand@gmail.com" target="_blank">kvmsanand@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">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></blockquote><div><br></div><div style>I have virtually no experience with Perl on Windows. So it's probably safest to ignore me. But it's possible that the problem is only with the test module having some kind of problem on Windows--the module you're trying to install might actually work ok if you skip the tests or force the install. (cpanm --help).<br>
</div><div style><br></div><div style>mike</div><div style><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<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>
<br>_______________________________________________<br>
dancer-users mailing list<br>
<a href="mailto:dancer-users@dancer.pm">dancer-users@dancer.pm</a><br>
<a href="http://lists.preshweb.co.uk/mailman/listinfo/dancer-users" target="_blank">http://lists.preshweb.co.uk/mailman/listinfo/dancer-users</a><br>
<br></blockquote></div><br></div></div>