Mercurial > repo
changeset 11845:92a46219c6df draft
<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;
author | HackEso <hackeso@esolangs.org> |
---|---|
date | Tue, 16 Jul 2019 12:25:30 +0000 |
parents | a2cc197941a8 |
children | b915ab56eefc |
files | bin/hi |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/bin/hi Fri Jul 05 16:38:32 2019 +0000 +++ b/bin/hi Tue Jul 16 12:25:30 2019 +0000 @@ -1,2 +1,2 @@ #!/usr/bin/perl -$_ = (join " ", @ARGV) || `words`; s/^\s+|\s+$//g; print "Hi $_. "; if (/[aeiouyAEIOUY0134]/) { s/^[^aeiouyAEIOUY0134]*/H/; } else { s/^./H/; } print "$_."; \ No newline at end of file +$_ = (join " ", @ARGV) || $ENV{IRC_NICK}; s/^\s+|\s+$//g; print "Hi $_. "; if (/[aeiouyAEIOUY0134]/) { s/^[^aeiouyAEIOUY0134]*/H/; } else { s/^./H/; } print "$_."; \ No newline at end of file