Mercurial > repo
annotate bin/hi @ 12262:6908a7095bcd draft
<int-e> sled ../bin/"//s=-r=--r=
author | HackEso <hackeso@esolangs.org> |
---|---|
date | Sun, 08 Dec 2019 00:00:47 +0000 |
parents | 92a46219c6df |
children |
rev | line source |
---|---|
4531 | 1 #!/usr/bin/perl |
11845
92a46219c6df
<wob_jonas> perl -e open$I,"<",$c="bin/hi"; local $/; $s=<$I>; $s=~s/`words`/\\$ENV{IRC_NICK}/ or die; if (1) { open $O,">",$c or die; print $O $s or die; } print $s;
HackEso <hackeso@esolangs.org>
parents:
11725
diff
changeset
|
2 $_ = (join " ", @ARGV) || $ENV{IRC_NICK}; s/^\s+|\s+$//g; print "Hi $_. "; if (/[aeiouyAEIOUY0134]/) { s/^[^aeiouyAEIOUY0134]*/H/; } else { s/^./H/; } print "$_."; |