Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ModPerl: ModPerl
quick pure perl question
 

Index | Next | Previous | View Flat


aw at ice-sa

Jun 28, 2009, 8:41 AM


Views: 498
Permalink
quick pure perl question

Hi.
By curiosity, and just in case anyone knows off-hand :

perl 5.8.8

In a script, I substantially do this :

open(FIRST,'<:utf8',$name1);
open(SECOND,'>:raw',$name2);
while(defined($line = <FIRST>)) {
print SECOND $line;
}

and I get warnings : "wide character in print to <SECOND>,.."

I mean, I know that my data is UTF-8, and I know that some characters
are going to be "wide", and that's how I want them.
I also know that I could specify the output I/O layer as 'utf8' (which
avoids the warning).
But why do I get warnings when I specified 'raw' as the I/O layer ?
Doesn't 'raw' mean like 'as is' ?

Subject User Time
quick pure perl question aw at ice-sa Jun 28, 2009, 8:41 AM
    Re: quick pure perl question mike at acorg Jun 28, 2009, 9:12 AM
    Re: quick pure perl question moseley at hank Jun 28, 2009, 9:33 AM
    Re: quick pure perl question andy at hexten Jun 30, 2009, 5:17 AM
        Re: quick pure perl question aw at ice-sa Jun 30, 2009, 6:13 AM
            Re: quick pure perl question andy at hexten Jun 30, 2009, 6:33 AM
            Re: quick pure perl question moseley at hank Jun 30, 2009, 6:45 AM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.