There is a module to fix the flattening, its Method::Signatures
In reply to Re^3: Teaching Perl by Anonymous Monk in thread Teaching Perl by ambrus