- or download this
#!/usr/bin/perl -wT
use strict;
...
my $d = data->new;
print $d->day("10"), "\n";
print $d->now("d"), "\n";
- or download this
10th
10
- or download this
my $temp = $d->now("d");
print $d->day("$temp"), "\n";
- or download this
{ package data;
sub new {
...
#etc...
}
}