in reply to Re^2: How can I print three lines before pattern match?
in thread How can I print three lines before pattern match?

$#file is the index of the last element in the array @file.