Thread MySQL und Perl
(71 answers)
Opened by H3llGhost at 2007-10-14 17:05 H3llGhost+2007-11-05 21:00:33-- zum glück nicht. das ist unsauber. wofür hat man eine saubere hash-struktur, nur um den dann in die symboltabelle zu exportieren? also: du hast einen hash of hashes, wie es aussieht. Code (perl): (dl
)
1 2 3 4 for my $key (sort keys %$hashref) { my $entry = $hashref->{$key}; print "foo: $entry->{foo}\n"; } ich ueberlasse is jetzt mal dir, das auf deine hashref anzupassen =) Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. -- Damian Conway in "Perl Best Practices"
lesen: ![]() ![]() |