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

Re: [Omaha.pm] doh




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