Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: utf8 for require scripts

by haukex (Chancellor)
on Dec 23, 2019 at 13:32 UTC ( #11110550=note: print w/replies, xml ) Need Help??


in reply to utf8 for require scripts

A bisect confirms the change is due to the fixing of bug RT#96008 in 639dfab: before v5.16.0, use and require were affected by the open pragma. Since your index_req.pl is apparently encoded in UTF-8, it does require a use utf8; at the top, because that's basically what the utf8 pragma means: "this lexical block is encoded in UTF-8".

Sorry, but the best practice here is to put the use utf8; pragma at the top of every Perl source file that is encoded in UTF-8, everything else is a hack, or workaround at best.

Replies are listed 'Best First'.
Re^2: utf8 for require scripts
by YarNik (Sexton) on Dec 23, 2019 at 13:40 UTC
    I understand, thanks for the explanation.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (7)
As of 2020-03-31 07:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    To "Disagree to disagree" means to:









    Results (180 votes). Check out past polls.

    Notices?