in reply to RE: RE: RE: A splitting question
in thread A splitting question

If you only want to count the lines then use something like
my @myfile = <File>; my $lines = @myfile;
but that was just guessing what you are doin.
But to go on with your idea you need to
undef $/; # enable "slurp" mode $_ = <FH>; # whole file now here
which is an excerpt from perlman:perlvar

Have a nice day
All decision is left to your taste