Leser: 1
3 Einträge, 1 Seite |
1
2
3
4
5
6
7
8
9
10
while (<$fh>)
{
my @split = split(/,/, $_);
if($split[$b] < $Ergebnis) #überprüft nach
minimum
{
$Ergebnis=$split[$b];
}
else{next};
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/perl
use strict;
use warnings;
my $file = 'whiletest.txt';
open(my $fh,"<",$file) or die $!;
for(0..3){
while(my $line = <$fh>){
print $line;
}
seek $fh,0,0;
}
close $fh;
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/perl
use strict;
use warnings;
my $file = 'whiletest.txt';
open(my $fh,"<",$file) or die $!;
my @lines = <$fh>;
close $fh;
for(0..3){
for my $line(@lines){
print $line;
}
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/perl
use strict;
use warnings;
use Tie::File;
my $file = 'whiletest.txt';
tie my @lines,"Tie::File",$file or die $!;
for(0..3){
for my $line(@lines){
print $line,"\n";
}
}
untie @lines;
3 Einträge, 1 Seite |