http://qs321.pair.com?node_id=981143


in reply to Split words

perl -e ' while(<>){@monk_split=split(/\s*(monks)\s*/);print join"\n", +@monk_split}' ~/tmp/tmp.dat perl monks wisdom monks perl wisdom
print "Good ",qw(night morning afternoon evening)[(localtime)[2]/6]," fellow monks."