http://www.perlmonks.org?node_id=1019221


in reply to Re^2: match sequences of words based on number of characters
in thread match sequences of words based on number of characters

... "Undefined subroutine &main::rxg called at whatnot.pl line 9".

I don't know what's in whatnot.pl, but somewhere in there must be the subroutine definition for  rxg() that I included in my post above; please take another look.