in reply to Fast way - get array elements > 4 chars
my @array = ( 12, 123456, 134, 3, 45678901, 55555, 3434, 1122334455 ); my @long = ( join " ", @array ) =~ /[^ ]{5,}/g; print join "\n", @long;
Is this what you were after? As for performance, I have no idea how this compares to ikegami's solution. Any insights on this?123456 45678901 55555 1122334455
|
|---|