in reply to Path::Tiny supress unicode warnings
Further to hippo's point, you can also specify the encoding as an option to slurp. From the doc to Path::Tiny :
"Reads file contents into a scalar. Takes an optional hash reference which may be used to pass options. The only available option is binmode, which is passed to binmode() on the handle used for reading."$data = path("foo.txt")->slurp( {binmode => ":raw"} );
Hope this helps!
|
|---|