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

The sample code helped a ton. It now works perfectly. Thanks

--BigJoe

Learn patience, you must.
Young PerlMonk, craves Not these things.
Use the source Luke.

Replies are listed 'Best First'.
RE: RE: RE: RE: A splitting question
by little (Curate) on Nov 15, 2000 at 03:11 UTC
    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