Help for this page

Select Code to Download


  1. or download this
    $db = tie @tie, ...., $DB_RECNO;
    
    ...
    while($tie[0]->timestamp < time - 3600) {
      shift @tie;
    }
    
  2. or download this
    foreach $rec (@tie) {
      my $x = $rec;
      print "timestamp1: ", $rec->timestamp, "\n";
      print "timestamp2: ", $x->timestamp, "\n";
    }
    
  3. or download this
    foreach $rec (@tie) {
    
    ...
    
      print "rec: $rec, x: $x\n";
    }
    
  4. or download this
    $x = $rec;
    print $x == $rec ? "match\n" : "differ\n"; # always returns 'differ'