> "McCollum, Frank" <[EMAIL PROTECTED]> said:

> I'm a beginner too, given, but alternatively, you could unshift the lines
> into an array and just check the last variable.  This would allow you to
> reference the other lines later if there was more work to be done here.

Something like this while loop fragment is a simple way to approach the problem:

my $last_line = "";
while (<FILE>) {
        $last_line = $_;
}

$last_line will then hold the last line of the file with the trailing
line terminator.  You can chomp it off, if it is unneeded.

-- 
Smoot Carl-Mitchell
Consultant



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

Reply via email to