in reply to Fast way - get array elements > 4 chars

You mean aside from something like i.e. untested, ...
%res = ( map { ( $_ => undef ) } grep length > 4, <DATA> ), warn keys +%res;
or some such??

I'm sure something like

warn keys %{ ( map { ( $_ => undef ) } grep length > 4, <DATA> ) };
should work, but I don't seem to have ever been able to manage it ... ah well, just goes to show how little I know and thus shouldn't come as too great a surprise :D

update

Just noticed the length is (was) wrong in my original reply ?

A user level that continues to overstate my experience :-))