Help for this page

Select Code to Download


  1. or download this
    use Fcntl qw(SEEK_SET);
    
    ...
    my $read = sysread $fh, $sequence, $length;
    die "Failed to read $length bytes from $input, got $read"
      if $length != $read;