The Perl Toolchain Summit 2025 Needs You: You can help 🙏 Learn more

package FooBarBaz;
use strict;
open(my $fh, '<', __FILE__) or die "Could not open this file!: $!";
my @end = <$fh>;
close($fh);
is($end[-1], 'done_testing', "no semicolon or newline is present at the end of this file");
done_testing