Yuo are missing the semicolons after your sub declarations. Try it agian ;)<br><br><div class="gmail_quote">On 28 December 2012 15:57, Celogeek <span dir="ltr"><<a href="mailto:me@celogeek.com" target="_blank">me@celogeek.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-size:12pt;font-family:times new roman,new york,times,serif"><div>Can I dispatch my root thought multiple module ?<br>
</div><div><br></div><div>I have in App::Main : <br></div><div><br></div><div>hook before => sub {<br></div><div>var xxx => "test";<br></div><div>}<br></div><div><br></div><div>and in App::Root;<br></div><div>
<br></div><div>get "/" => sub {<br></div><div> return vars->{xxx}<br></div><div>}<br></div><div><br></div><div>But vars seems empty.<br></div><div><br></div><div>In my bin/app.psgi I have :<br></div><div><br>
</div><div>use Dancer;<br></div><div>use App::Main;<br></div><div>use App::Root;<br></div><div><br></div><div>start;<br></div><div><br></div><div><br></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>