[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Omaha.pm] Is this necessary? (perl code)



I think @{ } is redundant with the fact that
 
   my ($response, $success) =
 
should put forward() into array context anyway.
 
(Presumably forward() is using wantarray (perldoc -f wantarray) to determine what it should return based on the requested context.)
 
Try removing @{ } and then test both success ($twig, 1), and failure (0) returns from forward() to see if everything downstream from that code survives...  :)
 
HTH,
 
j
 
 

From: Justin Esbenshade
Sent: Thu 12/11/2008 9:34 AM

     my ($response,$success) = @{$c->forward('OWS', 'CreateBooking', [ $room_args ])};

 

Is the @{ } required around the method call?  The few pages I saw from a Google search did not have that.

We’re getting a Phoenix Fatal Error that’s occurring saying we Can't use string ("0") as an ARRAY ref