Mercurial > repo
view bin/blessyou @ 10412:5af59ff5ca72
<hppavilion[1]> learn zed is the 26th letter of the alphabet in Commonwealth English. Why they consider what is clearly a 3-letter string to be a single letter is unclear.
author | HackBot |
---|---|
date | Wed, 15 Mar 2017 00:47:06 +0000 |
parents | 4cc6f4753408 |
children | fea38c2307ee |
line wrap: on
line source
#!/usr/bin/perl $_ = (join " ", @ARGV) || `words`; s/^\s+|\s+$//g; print "Bless you, $_. "; if (/[aeiouyAEIOUY]/) { s/^[^aeiouyAEIOUY]*/Bl/; } else { s/^./B/; } print "$_.";