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,}/}"In reply to Re^2: How to check if a string contains more than 1 character?
by Lotus1
in thread How to check if a string contains more than 1 character?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |