Ryan Detzel wrote:
Can it be done, I keep getting weird results.  I want to do


my ($val1,$val2) = $c->forward('test');


sub test : Private {
The return value of a forward isn't really something you should rely on, but, if you must, you can return an array reference:

my ($val1,$val2) = @{ $c->forward('test') };

sub test : Private {
   return ['val1', 'val2'];
}

Ideally, you should be calling it just as a regular method:

my ($val1,$val2) = $self->test;

sub test {
   return 'val1', 'val2';
}

-Brian

_______________________________________________
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/

Reply via email to