[Omaha.pm] ||= quickie
Hugh Jarce
hjarce2001 at yahoo.com
Thu Sep 23 18:45:54 CDT 2004
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
More information about the Omaha-pm
mailing list