- or download this
#!/usr/bin/perl
use strict;
...
TEST =>
# And ignoring this
- or download this
my $fileContent;
open(my $fileHandler, $inputFile) or die "Could not open file '$inputF
+ile' $!";
...
$fileContent = <$fileHandler>;
}
close($fileHandler);
- or download this
my $fileContent = do {
open(my $fileHandler, $inputFile) or die "Could not open file '$in
+putFile' $!";
local $/;
<$fileHandler>;
};
- or download this
if($fileContent =~ /\b\Q$beginString\E\b(.*?)\b\Q$endString\E\b/s){