Skip to content

Instantly share code, notes, and snippets.

View louiee's full-sized avatar

Louie Octo louiee

View GitHub Profile
@louiee
louiee / FizzBuzz.pl
Last active December 8, 2017 05:46 — forked from c17004/FizzBuzz.pl
20171208_FizzBuzz_修正版
#!/usr/bin/perl
use warnings;
use strict;
use 5.010;
my @inc = (1..100);
for (@inc){
if (($_ % 3 == 0) && ($_ % 5 == 0)){
say "FizzBuzz";
@louiee
louiee / katakana.pl
Last active November 10, 2017 06:35
カタカナを抽出
#!/usr/bin/perl
use utf8;
use strict;
use Encode;
# Oniguruma \p{Katakana} https://github.com/kkos/oniguruma/blob/master/doc/UNICODE_PROPERTIES
my $str = "アイウaあエオワ12イウエオン";
@louiee
louiee / date_format.pl
Last active November 10, 2017 06:14 — forked from s15007/date_format.pl
修正した
#!/usr/bin/perl
use feature 'say';
my @date = ('1月1日', '5/21', '10/46', '7/14', '3/6', '6月7日');
foreach (@date) {
if ($_ =~ /^(\d+)\/(\d+)$/) {
if ($1 >= 1 && $1 <= 12 && $2 >= 1 && $2 <= 31) {
say