[Omaha.pm] if ($obj->can('get_busy') ...

Jay Hannah jhannah at omnihotels.com
Wed Jul 5 10:33:00 PDT 2006


-laugh-  I've got an attribute called 'busy'. I'm pretty sure there's a
rap song in my source code now...

if ($obj->can('get_busy') && $obj->get_busy == 0) {
   # Flag this as busy, return it...
   $obj->set_busy(1);
   return $obj;
}

j
calling the Black Eyed Peas



More information about the Omaha-pm mailing list