Shouldn't something like this catch them all?
#!/usr/bin/env perl use strict; use warnings; use Path::Tiny; use Try::Tiny; use autodie qw(:all); use feature qw(say); my $file = shift; try { say path($file)->slurp_utf8; } catch { print $_; }; __END__
I'm not sure. And even worse: I have no idea for the moment/in a hurry how to test it.
Best regards, Karl
«The Crux of the Biscuit is the Apostrophe»
perl -MCrypt::CBC -E 'say Crypt::CBC->new(-key=>'kgb',-cipher=>"Blowfish")->decrypt_hex($ENV{KARL});'Help
In reply to Re: bullet proof SLURP file
by karlgoethebier
in thread bullet proof SLURP file
by leszekdubiel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |