how to identify an argument as a "Year" in PERL
- by dexter
i have created a file argument.pl
which takes several arguments first of which should be in form of a year
example of argument : 2010 23 type
here 2010 is a year
my code does something like:
use strict;
use warning
use Date::Calc qw(:all);
my ($startyear, $startmonth, $startday) = Today();
my $weekofyear = (Week_of_Year…