Help for this page

Select Code to Download


  1. or download this
    $send_flag = ($bbstatus ne $last_bbstatus)
                 or (($now - $last_send_time) > $min_frequency)
                 or defined($OPTS::opts{f});
    
  2. or download this
    my @messages = (
      [ sub { $bbstatus ne $last_bbstatus }, "Status not changed" ],
    ...
    foreach my $m (@messages) {
      print $m->[1], last if $m->[0]->();
    }
    
  3. or download this
    my $send_message =
      ($bbstatus ne $last_bbstatus and "Status no changed")
    ...
        or (defined($OPTS::opts{f}) and "Forced send requested")
        or "No changes";
    my $send_flag = $send_message ne "No changes";