5 Einträge, 1 Seite |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/usr/bin/perl -w
use strict;
use warnings;
my $path = "/Krusty/Desktop/Scripte";
my $infile = "testfile.csv";
my @file = ();
my $test1 = "KEINE AHNUNG";
open(INPUT, "<$path/$infile") || die "Cannot open file $infile!\n";
while(<INPUT>)
{
chomp($_);
push(@file, $_);
}
close(INPUT);
test($test1, @file);
sub test
{
my $next = $_[0];
print $next."\n";
my @neu = @_;
foreach my $x (@neu)
{
print $x."\n";
}
}
1
2
3
4
5
6
7
8
9
10
sub test
{
my $next = shift; # get and remove first item from @_
print $next."\n";
my @neu = @_;
foreach my $x (@neu)
{
print $x."\n";
}
}
5 Einträge, 1 Seite |