#!/usr/bin/perl # Andrew Daviel, TRIUMF while (read (STDIN,$_,2)) { $n++ ; $d = unpack('s',$_) ; push(@d,$d) ; if ($ARGV[0] && $n >= $ARGV[0]) { last ; } } $n = @d ; print<