Antwort: Re: Sortieren mit Perl...
Florian Lohoff
flo at rfc822.org
Wed Jan 26 14:01:12 CET 2000
On Wed, Jan 26, 2000 at 01:58:57PM +0100, Kai.Windmoeller at rokd.de wrote:
> > Dann sortieren bzw sortiert ausgeben ...
> >
> > foreach $user ( sort keys %hash ) {
> > foreach $col1 ( sort keys ${ $hash{$user} } ) {
> > foreach $col2 ( sort keys ${ $hash{$user}{$col1} } ) {
> > foreach $col3 ( sort keys ${ $hash{$user}{$col1}{$col2} } ) {
> > print "$user;$col1;$col2;$col3\n";
> > }
> > }
> > }
> > }
>
> Dies sortiert, meines wissens nach,
>
> primär nach $user,
> dann nach $col1,
> dann nach $col2,
> und dann nach $col3
>
> und ist damit am Ziel vorbei.
Haettest du die mail zuende gelesen haettest du verstanden was ich damit
bezweckt habe ...
Danke fuers Gespraech
Flo
--
Florian Lohoff flo at rfc822.org +49-5241-470566
"Technology is a constant battle between manufacturers producing bigger and
more idiot-proof systems and nature producing bigger and better idiots."
More information about the Linux
mailing list