H.Merijn Brand skribis 2004-07-15 11:57 (+0200):
> 1. They do not ambiguate with files named 'r', or 'w'
Not a problem, assuming that these are named arguments as in:
open :r, $file;
open :w, $file;
open :rw, $file;
open :r :w, $file; # Hmm...
> 2. They don't have to be translated (in german that would be 'l' and 's')
zeg "hallo, wereld";
mijn $dbh = DBI->verbind(...);
mijn $sth = $dbh->bereid_voor($zoekopdracht);
$sth->voer_uit(@waardes);
$sth->bind_kolommen(\my ($foo, $bar));
zolang ($sth->apporteer) { # :)
toonf "%10s %d", $foo, $bar;
volgende als $bar gd 15;
}
No, translations don't work in programming.
> 3. They play nice with possible extensions 'open ">:utf8", $file;
But
open :w('utf8'), $file;
it would even make using different layers for in and output easy:
open :r('iso-8859-15') :w('utf8'), $file;
although you shouldn't want that :)
Juerd