Thread perl und multidimensional arrays (12 answers)
Opened by Gast at 2004-06-06 14:16

renee
 2004-06-06 14:37
#2720 #2720
User since
2003-08-04
14371 Artikel
ModeratorIn
[Homepage] [default_avatar]
Code: (dl )
1
2
3
4
5
6
7
open (FILE,"<datei.txt");
my @file = ();
while(my $row = <FILE>) {
 push(@file,[split(/\s/,$row)]);
}
close(FILE);
print Dumper(\@file);


PS: Perl macht Spaß!\n\n

<!--EDIT|renee|1086518279-->
OTRS-Erweiterungen (http://feature-addons.de/)
Frankfurt Perlmongers (http://frankfurt.pm/)
--

Unterlagen OTRS-Workshop 2012: http://otrs.perl-services.de/workshop.html
Perl-Entwicklung: http://perl-services.de/

View full thread perl und multidimensional arrays