Thread Datei einlesen (38 answers)
Opened by Fredl at 2012-03-09 15:50

hlubenow
 2012-03-10 17:05
#156727 #156727
User since
2009-02-22
875 Artikel
BenutzerIn
[default_avatar]
Also, wenn schon mit Modulen, dann ist "Tie::File" wohl am praktischsten:
Code (perl): (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/perl

use warnings;
use strict;

use Tie::File;

my @a;
my $i;

tie @a, 'Tie::File', "D:\\Versuch\\demo.dat";
foreach $i (@a) {
    print "$i\n";
}
untie @a;

;)

View full thread Datei einlesen