Program Repair Shop 61

notify_observers

        92              if ( ref $o eq 'CODE' ) {
        93                  $o->( $item, $action, @params );
        95              else {
        96                  $o->update( $item, $action, @params );
        my $a = Alarm->new;
        $a->add_observer(\&complain);
        $a->notify_observers("I like pie!");   # Calls complain()
        if (ref $o eq "CODE") {
          $o = Class::Observer::CODEObserver->new($o);
        }