in reply to Others studying the Monastery: (23)

Looking at the last two phrases ('musing the Monastery', 'rifling the Monastery'), I suspect that was added as a quick hack, like so:

my @words = qw( studying musing rifling ); printf "Others %s the Monastery", $words[ int rand @words ];

... so the code probably doesn't yet handle special cases. I don't know how hard it would be to add that, as I have ~300 XP until I'm eligible for pmdev. :)


Life is denied by lack of attention,
whether it be to cleaning windows
or trying to write a masterpiece...
-- Nadia Boulanger

Replies are listed 'Best First'.
Re^2: Others studying the Monastery: (23)
by papidave (Pilgrim) on Feb 02, 2009 at 20:20 UTC
    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...