[Dancer-users] One-off subroutines in Dancer
ambs
ambs+dancer at perl-hackers.net
Thu Apr 7 20:36:45 CEST 2011
Hello, Bobby.
What are the oddities you are experiencing? Is there any behavior or
error you can describe, so it gets easier to help you?
Cheers,
ambs
On 07/04/2011 19:24, J. Bobby Lopez wrote:
> I've experienced some oddities using Dancer, and it's likely due to my
> being a n00b.
>
> Just a quick query on whether I should be able to do something like the
> following without any problems:
>
> ======================
> use Dancer;
>
> get '/' => sub {
> my $hello = test_sub("Hello World!");
> return $hello;
> };
>
> start;
>
> sub test_sub
> {
> my $data = shift;
> return $data;
> }
> ======================
>
> If not, what would be the correct way to do the above?
>
> Thanks,
> -Bobby
>
>
>
> _______________________________________________
> Dancer-users mailing list
> Dancer-users at perldancer.org
> http://www.backup-manager.org/cgi-bin/listinfo/dancer-users
More information about the Dancer-users
mailing list