martinthurn
New member
You should not try to write such terse code. What is the benefit? See, you just get yourself into trouble.
If the file is not too large, just read the whole file (that's what you're doing anyway, just without an explicit variable):
local $/ = undef;
my $sContents = <IN>;
if ($sContents =~ m/Export terminated/)
...
If the file is not too large, just read the whole file (that's what you're doing anyway, just without an explicit variable):
local $/ = undef;
my $sContents = <IN>;
if ($sContents =~ m/Export terminated/)
...