Created
January 18, 2014 11:11
-
-
Save hyuki0000/8489057 to your computer and use it in GitHub Desktop.
今年の日付を作るスクリプト
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use strict; | |
use warnings; | |
my @days = ( 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 ); | |
for my $month (1..12) { | |
for my $day (1..$days[$month - 1]) { | |
print "2014/$month/$day\n"; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment