Thread Perlscript gesucht (12 answers)
Opened by majas at 2012-06-15 21:13

Gast Muffi
 2012-06-15 23:15
#159058 #159058
ungetestet:

Code (perl): (dl )
1
2
3
4
5
6
7
open(my $file, "<", ...);
my @lines = <$file>;
close $file;
unshift @lines, pop @lines for (1..5);
open(my $file, ">", ...);
print $file $_ for @lines;
close $file;


die ... sind der Dateiname
Last edited: 2012-06-15 23:24:53 +0200 (CEST)

View full thread Perlscript gesucht