Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: avoid writing 'use utf8' in every script (eval)

by Anonymous Monk
on Feb 02, 2014 at 01:28 UTC ( [id://1073012]=note: print w/replies, xml ) Need Help??


in reply to avoid writing 'use utf8' in every script

doed( $foo ); use Path::Tiny qw/ path /; sub doed { my( $filetoeval ) = @_; my $toeval = "use utf8; " . path( $filetoeval )->slurp_utf8 ; eval $toeval; ## do-ed }

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1073012]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (1)
As of 2024-04-25 04:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found