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!
In reply to Re: Path::Tiny supress unicode warnings
by 1nickt
in thread Path::Tiny supress unicode warnings
by leszekdubiel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |