Mercurial > repo
view bin/hi @ 4203:e87d36fd991f
<oerjan> sed -i \'2s/?/\\\\?/\' bin/learn # missed one
author | HackBot |
---|---|
date | Thu, 19 Dec 2013 21:03:48 +0000 |
parents | c216e32f5e2e |
children |
line wrap: on
line source
#!/usr/bin/perl $_ = (join " ", @ARGV) || `words`; s/^\s+|\s+$//g; print "Hi $_. "; if (/[aeiouyAEIOUY]/) { s/^[^aeiouyAEIOUY]*/H/; } else { s/^./H/; } print "$_.";