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


in reply to Re: Others studying the Monastery: (23)
in thread Others studying the Monastery: (23)

If your example were correct, wouldn't you simply do something like:
my @terms =('studying in', 'musing over', 'rifling through', 'threading camels through a needle at' ); printf "Others %s the Monastery", $words[ int rand @words ];
and get the desired result? I'm going to guess that the terms must come from a whitespace-delimited (undisclosed) storage location that doesn't parse phrases properly. But then again, it's only a guess, and I could be entirely wrong...