Japhy
Thanks again. This worked fine and was a singnigicant performance increase
from slurping the whole file into the array.
One information question I have for you.
Why 'scalar <HEAD>' ??
It worked real well, I just want to know why ??
Thanks
JIm

>   open HEAD, "< $file" or die "can't read $file: $!";
>   for (1 .. 5) {
>     push @head, scalar <HEAD>;  # first 5 lines
>   }
>   close HEAD;
> 
> 
> 

Reply via email to