in reply to Re: How to check if a string contains more than 1 character?
in thread How to check if a string contains more than 1 character?

You can also put a list of strings directly in the foreach loop.

perl -e "foreach(qw(abc a 00)){print qq($_\n) if m/\S{2,}/}"