Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^5: replacement for deprecated encoding pragma

by ikegami (Patriarch)
on Jul 22, 2021 at 04:20 UTC ( [id://11135284]=note: print w/replies, xml ) Need Help??


in reply to Re^4: replacement for deprecated encoding pragma
in thread replacement for deprecated encoding pragma

By default, perl assumes that your source code is in LATIN-1

By default, perl assumes that your source code is in ASCII. (Though string literals are 8-bit clean.)

$ printf 'use utf8; sub bête { } say "ok";' | perl -M5.010 ok $ printf 'sub bête { } say "ok";' | iconv -t iso-8859-1 | perl -M5.010 Illegal declaration of subroutine main::b at - line 1.

Seeking work! You can reach me at ikegami@adaelis.com

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (7)
As of 2024-04-18 10:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found