comparison bin/hi @ 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 140e01ef1912
children
comparison
equal deleted inserted replaced
11844:a2cc197941a8 11845:92a46219c6df
1 #!/usr/bin/perl 1 #!/usr/bin/perl
2 $_ = (join " ", @ARGV) || `words`; s/^\s+|\s+$//g; print "Hi $_. "; if (/[aeiouyAEIOUY0134]/) { s/^[^aeiouyAEIOUY0134]*/H/; } else { s/^./H/; } print "$_."; 2 $_ = (join " ", @ARGV) || $ENV{IRC_NICK}; s/^\s+|\s+$//g; print "Hi $_. "; if (/[aeiouyAEIOUY0134]/) { s/^[^aeiouyAEIOUY0134]*/H/; } else { s/^./H/; } print "$_.";