I have a perl array that shouldn’t have anything longer than 20 characters in it. Occasionally though, a longer string is input in error.
How can I “clean out” my perl array of these longer strings? Is there a way to grep for length? Something like..
@blurbs = grep([size<=20],@blurbs);
lengthgets the length of a string.