doed( $foo ); use Path::Tiny qw/ path /; sub doed { my( $filetoeval ) = @_; my $toeval = "use utf8; " . path( $filetoeval )->slurp_utf8 ; eval $toeval; ## do-ed }
In reply to Re: avoid writing 'use utf8' in every script (eval)
by Anonymous Monk
in thread avoid writing 'use utf8' in every script
by reqnode
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |