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

Jay Hannah jhannah at omnihotels.com
Thu Dec 11 08:11:08 PST 2008

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...  :)

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


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/omaha-pm/attachments/20081211/bae1286b/attachment.html>

More information about the Omaha-pm mailing list