Greetings:
I am new to PERL, and have a little script to fixup, (1) consider, Natives on an island have unusual names for the days and months, (2) add a conversion fuction for the month names, and make the whole thing a library.
This is what I have thus far:
#!/usr/bin/perl -w
@day = qw(ark dip wap sen pop kir);
sub number_to_day_name {
my $num = shift @_; $day[$num];
}
@month = qw(diz pod bod rod sip wax lin sen kun fiz nap dep);
I am new to PERL, and have a little script to fixup, (1) consider, Natives on an island have unusual names for the days and months, (2) add a conversion fuction for the month names, and make the whole thing a library.
This is what I have thus far:
#!/usr/bin/perl -w
@day = qw(ark dip wap sen pop kir);
sub number_to_day_name {
my $num = shift @_; $day[$num];
}
@month = qw(diz pod bod rod sip wax lin sen kun fiz nap dep);