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

Re: [Omaha.pm] ||= quickie



Jay Hannah wrote:
> Before:
> 
>         $airline_status_desc = $airline_status_desc  ?
>                                $airline_status_desc
>                                  : "NO STATUS";
> 
> After:
> 
>         $airline_status_desc ||= "NO STATUS";

Very nice. I don't often see ||= used. One place I remember seeing
it is the Orcish Maneuver:

<http://www.perlmonks.org/?node_id=130021>

Hugh.



	
		
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
http://promotions.yahoo.com/new_mail