8 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 31 32
sub importdaten { $class = shift; ... for(@daten) { $line = $_; my @tokens = quotewords (";", 0, $line); $in3{firma} = @tokens[0]." ".@tokens[4]." ".@tokens[5]." ".@tokens[6]." ".@tokens[7]." ".@tokens[8]; $in3{strasse} = @tokens[1]; $in3{plz} = @tokens[2]; $in3{ort} = @tokens[3]; $in3{ansprechpartner} = @tokens[9]." ".@tokens[10]." ".@tokens[11]." ".@tokens[12]; $in3{position} = @tokens[13]; $in3{tel} = @tokens[14]; $in3{fax} = @tokens[15]; $in3{branche} = @tokens[16]; $in3{gruendung} = @tokens[20]; $class->neu(%in3); } } sub neu { $class = shift; %neu = shift; print "Content-type: text/html\n"; print $neu{firma}; }
1
2
3
4
5
6
7
8
9
$class->neu(\%in3);
sub neu {
$class = shift;
$hash_ref = shift;
print "Content-type: text/html ";
print $hash_ref->{firma};
}
1
2
3
4
5
6
7
8
9
10
class->neu(\%in3);
sub neu {
$class = shift;
$hash_ref = shift;
my %hash = %{$hash_ref};
print "Content-type: text/html ";
print $hash{firma};
}
1
2
3
4
5
6
7
8
$class->neu(%in3);
sub neu {
my ($class,%neu) = @_;
print "Content-type: text/html ";
print $neu{firma};
}
[HRDoomrunner,27.02.2004, 10:59]Code (perl): (dl )$in3{firma} = @tokens[0]." ".@tokens[4]." ".@tokens[5]." ".@tokens[6]." ".@tokens[7]." ".@tokens[8];
[HRDoomrunner,27.02.2004, 10:59]
8 Einträge, 1 Seite |