Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^9: avoid writing 'use utf8' in every script

by Anonymous Monk
on Feb 18, 2014 at 23:55 UTC ( [id://1075403]=note: print w/replies, xml ) Need Help??


in reply to Re^8: avoid writing 'use utf8' in every script
in thread avoid writing 'use utf8' in every script

 perl foo.pl where foo.pl has bom will work on every platform

./foo.pl if .pl has been assoc-iated with perl will run on win32, and if foo.pl has bom it will be BOM-ed

./foo.pl won't work on unix if foo.pl has bom because shebang won't be detected and perl won't be called, the bom interferes with shebang

editors like notepad/scite... like the BOM ... I like the BOM even though I type in ASCII ... because I copy/paste stuff from the internet, and utf is the only way not to lose info ... most editors don't make files utf by default leading to corruption without BOM

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2024-04-23 23:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found