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

Re^3: How do you open/read a text , without knowing its encoding, and remove any BOM if its utf, what do you use?

by CountZero (Bishop)
on Apr 21, 2013 at 10:46 UTC ( [id://1029744]=note: print w/replies, xml ) Need Help??


in reply to Re^2: How do you open/read a text , without knowing its encoding, and remove any BOM if its utf, what do you use?
in thread How do you open/read a text , without knowing its encoding, and remove any BOM if its utf, what do you use?

Khen's link may be broken, but String::BOM is a good solution.

Your criticism is easy, but not helpful.

CountZero

A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

My blog: Imperial Deltronics

Replies are listed 'Best First'.
Re^4: How do you open/read a text , without knowing its encoding, and remove any BOM if its utf, what do you use?
by Anonymous Monk on Apr 21, 2013 at 11:12 UTC

    Khen's link may be broken, but String::BOM is a good solution.

    Its more typing than using :via(File::BOM) and isn't any kind of solution to the question I asked

    Your criticism is easy, but not helpful.

    Yes, naturally, Khen1950fx keeps making the same mistake over and over again. His responses rarely helpful to anyone, but they're never helpful to me.

      Can you expand on why String::BOM is not a (good) solution to your question?

      CountZero

      A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

      My blog: Imperial Deltronics

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2024-03-28 19:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found