If I had to keep this limitation I would do:
my @a = grep { /^.{1,20}$/ } split " ", $string [download]
In reply to Re^2: regexp question by deibyz in thread regexp question by tfoertsch