On Thu, 13 Feb 2003 11:49:04 -0500, Sean Sugrue wrote:

> I need to be able read the first few lines of a binary test file (i.e.
> .staff form). 

Please define what is a line for you in a binary file.
If it is just a normal line (ending on the line separator),
you just can do the normal way,
e.g. to read the first 5 lines:

open FILE, $filename or die "Can't open $filename: $!";
my @line;
push @line, scalar <FILE> for 1 .. 5;
close FILE;

> Does anyone know how to do this in purl.
                                     ^^^^

It's Perl, not purl !!


Greetings,
Janek

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to