Skip to content

Instantly share code, notes, and snippets.

View koji's full-sized avatar
🔍
I may be slow to respond.

Koji Kanao koji

🔍
I may be slow to respond.
View GitHub Profile
@koji
koji / qw.pl
Created August 25, 2013 05:43
perl入学式 #3
#!/usr/bin/env perl
#use strict;
#use warnings;
my @array = qw ( 0123 123 XXX);
print "表示:"."@array\n";
my $num = join '-' , @array;
print "電話番号的なもの:"."$num\n";
#!/usr/bin/env perl
use strict;
use warnings;
for my $i (1..100) {
if ($i%15 == 0) {
print "FizzBuzz\n";
} elsif ($i%5 == 0 ) {
print "Buzz\n";
} elsif ($i%3 == 0 ) {
@koji
koji / sort.pl
Created July 21, 2013 07:48
Perl入学式
#!/usr/bin/env perl
use strict;
use warnings;
my @array1; # 配列
# 3回入力する
for my $i (1..3) {
print $i."番目";
chomp($array1[$i-1] = <STDIN>);