grazie $input->>[$i] invece di $$input[$i] > e $#{$input} invece di $#$input > giusto per suggerire uno stile piu' leggibile