[Catalyst] html-widget bug or design?
    Brian Kirkbride 
    brian.kirkbride at deeperbydesign.com
       
    Wed Mar  1 19:23:42 CET 2006
    
    
  
Nilson Santos Figueiredo Junior wrote:
> If you want an array ref call it like:
> 
> my $result = Class->method;
> 
> If you want a list of values call it like:
> 
> my ($result) = Class->method;
> 
I think that is what he was requesting, actually.  
His problem was with code like this:
sub method {
  return $results[0] if scalar(@results) == 1;
  return wantarray ? @results : \@results;
}
Which really is a pain, IMHO.
---------------
Brian Kirkbride
deeperbydesign.com
    
    
More information about the Catalyst
mailing list