Next Lightweight Databases 42

Fixed-Length Records

        sub modify_user_data {
          my ($fh, $user, @newdata) = @_;
          unless (find_user($fh, $user)) {
            seek $fh, 0, SEEK_END;      # Move to end of file
          }
          print $fh pack "A8 A5 A13 A20 A18", $user, @newdata;
        }


Next Copyright © 2003 M. J. Dominus