my ($naechster) = ( keys %attach ? (sort {$b <=> $a} keys %attach) : 0 )# hier ein +1 hinter die Klammer wirft "Useless use of sort in scalar context" # und "Use of uninitialized value in addition", warum? ;