Do you know where your variables are? | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Noone even mentioned File::Slurp! :) If you must use a module for this, may I suggest Path::Tiny or File::Slurper? See File::Slurp is broken and wrong by Leon Timmermans for why. Update: Agree with haukex below to just do it idiomatically without a module: my $string = do { local $/; <$fh> } See also: Any downsides to this slurp idiom? by haukex (2018 - prior discussion of this problem) In reply to Re^3: Extracting selected fields form file record (don't use File::Slurp)
by eyepopslikeamosquito
|
|