Solutions:
In reply to Re^3: Perl code SUCKS by Anonymous Monk in thread Perl code - sometimes UGLY... by otto