Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Lost in compressed encodings

by Corion (Patriarch)
on Apr 06, 2020 at 08:41 UTC ( [id://11115121]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        my $in;
        my $open_mode = '<:raw';
    ...
        }
        $open_mode .= ':utf8';
        open my $in, $open_mode, $filename or die "Can't read $filename: $
    +!\n";
    
  2. or download this
        my $in;
        if ($filename=~/\.gz$/) {
    ...
            open $in, '<:raw', $filename or die "Can't read $filename: $!\
    +n";
        };
        binmode $in, ':utf8';
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2024-04-23 18:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found