LoginSignup
0
0

More than 5 years have passed since last update.

ズンドコキヨシ with perl

Last updated at Posted at 2016-03-15

perlで作ってみます。

  • こんなんでいいんでしょうか?
  • forの中だけで作ってみました〜
zd.pl
use strict;
use warnings;
use utf8;
use Encode;

my @z = qw(ズン ドコ);
my $s;
for ( $s = ''; substr($s,-10) ne 'ズンズンズンズンドコ'; $s .= $z[int rand(@z)] ) {}
print encode('utf8',"$s キ・ヨ・シ!\n");

ちなみに...

  • Macにはsayコマンドというのがあるので、
% perl zd.pl | say
  • と、打つと面白いですよw
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0