Thread Daten speichern in best. Datenstruktur: Aber wie? (19 answers)
Opened by Kalmuecke at 2007-01-26 12:36

renee
 2007-01-29 18:47
#73732 #73732
User since
2003-08-04
14371 Artikel
ModeratorIn
[Homepage] [default_avatar]
Dazu solltest Du Dir mal mit CPAN:Data::Dumper den Hash anschauen.

Warum benutzen eigentlich alle die "hässlichen" C-Style-Schleifen?
Code: (dl )
1
2
3
4
5
6
7
for my $key (keys %anderesHash)
{
......
my $cntRef = $anderesHash{$key};
my @cntMsgArray = @$cntMsgRef;
......
}


ist doch schöner als
Code: (dl )
1
2
3
4
5
6
7
for (my $f = 0; $f < @fileNames; $f++)
{
......
my $cntRef = $anderesHash{$fileNames[$f]};
my @cntMsgArray = @$cntMsgRef;
......
}
OTRS-Erweiterungen (http://feature-addons.de/)
Frankfurt Perlmongers (http://frankfurt.pm/)
--

Unterlagen OTRS-Workshop 2012: http://otrs.perl-services.de/workshop.html
Perl-Entwicklung: http://perl-services.de/

View full thread Daten speichern in best. Datenstruktur: Aber wie?