in reply to Fast way - get array elements > 4 chars
or some such??%res = ( map { ( $_ => undef ) } grep length > 4, <DATA> ), warn keys +%res;
I'm sure something like
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 :Dwarn keys %{ ( map { ( $_ => undef ) } grep length > 4, <DATA> ) };
update
Just noticed the length is (was) wrong in my original reply ?
|
|---|