[Omaha.pm] doh

Jay Hannah jay at jays.net
Fri Sep 9 21:11:04 PDT 2005


On Sep 9, 2005, at 2:41 PM, Daniel Linder wrote:
>  On Fri, September 9, 2005 14:27, Jay Hannah wrote:
>  > What's wrong w/ this code?
>  > $sga = "78B";
>  > $sga ||= $state_cookie->{sga};
>
>  Did you mean:
>  $sga ||= $state_cookie->{$sga};
>  ???
>
>  (Of course not knowing what $state_cookie is doesn't help...)

I was fishing for the fact that in my code ||= will never do anything 
because $sga will always be defined because I just got done setting it 
to a string.

Doh!  -grin-

j




More information about the Omaha-pm mailing list