my $fileContent = do { open(my $fileHandler, $inputFile) or die "Could not open file '$inputFile' $!"; local $/; <$fileHandler>; };