in reply to
Finding a Letter at Last line
Assuming you have the entire content of the file in a string called $var (if you have them line by line in an array, just see whether the first character of the last element is a T), you could do:
$text =~ /(?:^|\n)T[^\n]*$/
[download]
Comment on
Re: Finding a Letter at Last line
Download
Code
In Section
Seekers of Perl Wisdom