develooper Front page | perl.perl5.porters | Postings from January 2013

Re: perlopentut modernization

Thread Previous | Thread Next
From:
Johan Vromans
Date:
January 19, 2013 13:16
Subject:
Re: perlopentut modernization
Message ID:
m2vcatmhxt.fsf@phoenix.squirrel.nl
Alexander Hartmaier <alex.hartmaier@gmail.com> writes:

> this week I had to look up how to create a file on open and came across
> perlopentut just to shockingly find out that is uses the two param form of
> open everywhere!
> Before investing my time to change that I wanted to get your opinions on
> the topic.

Tom Christiansen has written a lot on this topic, you should be able to
find it in the archives. Also, Camel IV has up-to-date information.
Tom also suggested a boilerplate that not only deals with open / close,
but also the encoding issues that come with Unicode data.

See e.g.,
http://stackoverflow.com/questions/6162484/why-does-modern-perl-avoid-utf-8-by-default

-- Johan

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About