|< 1 2 >| | 11 Einträge, 2 Seiten |
1
2
3
4
5
6
foreach (@Zeilen){
if (defined $dokuart && defined $zahl1){
print "test1";
if (/$dokuart\;$zahl1\;(\d+)/){
print "test2";
$zahl1 = $1;
1
2
3
4
# my $dir = './Konfigurationsdaten/';
# my @Zeilen = glob($dir.'*.DOCFIELD');
# open(my $fh,'<',$Zeilen[0]) or die $!;
# close $fh;
my @Zeilen = glob($dir."\\*.DOCFIELD");
1
2
3
4
5
6
7
8
sub foo {
my ($a, undef, $b) = @_;
$_[1] = $a * $b;
}
my $c;
foo(7,$c,8);
print $c, "\n"; # 56
1
2
3
4
5
6
sub foo ($\$$) {
my ($a, $b, $c) = @_;
$$b = $a * $c;
}
foo(7,$b,8);
print $b, "\n";
1
2
3
4
5
6
7
8
sub foo {
my ($a, undef, $b) = @_;
$_[1] = $a * $b;
}
my $c;
foo(7,$c,8);
print $c, "\n"; # 56
1
2
3
4
5
6
sub foo ($\$$) {
my ($a, $b, $c) = @_;
$$b = $a * $c;
}
foo(7,$b,8);
print $b, "\n";
1
2
3
4
5
6
7
8
9
use lib....
use foo;
my $a = 5;
&foo($a);
--------
sub foo{
my $a =shift;
print ${$a};
}
|< 1 2 >| | 11 Einträge, 2 Seiten |