Talk:File input/output

From Rosetta Code
Revision as of 00:31, 23 January 2007 by 89.49.121.184 (talk)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Perl cleanup

Removing the latest addition to the Perl section as it shows bad style. It is not representative of the current Perl version and programming practice. See reasoning in next paragraph. I'm keeping the nice while oneliner and binmode caveat, though.

Non-lexical filehandles have global scope and pollute the namespace as they cannot be restricted to the least possible lifetime. The || operator binds stricter than the or operator and forces the open function to have parentheses. The two-argument version of open is unelegant as it invites programming mistakes (see "dispelling the dweomer" in the Camel Book). 89.49.121.184 19:31, 22 January 2007 (EST)