Thread Suchen von Unten nach Oben: Suchen von UNTEN nach OBEN (57 answers)
Opened by yasukatakaya at 2007-05-31 11:57

vayu
 2007-05-31 12:32
#77091 #77091
User since
2005-01-13
782 Artikel
BenutzerIn
[default_avatar]
klar liess es in ein array ein und gehe von hinten nach vorne :)

Code: (dl )
1
2
3
4
my @file = <FILE>;
foreach($#file .. 0) {
#do something with $file[$_];
}


oder

Code: (dl )
1
2
3
4
my @file = reverse(<FILE>);
foreach(@file) {
#do something with $_;
}
\n\n

<!--EDIT|vayu|1180600415-->

View full thread Suchen von Unten nach Oben: Suchen von UNTEN nach OBEN