in reply to Re^2: identifier too long error
in thread identifier too long error
my $t = time; (my $sec, my $min, my $hour, my $mday, my $mon, my $year, my $wday, my + $yday, my $isdst)=localtime($t); $year = $year + "1900";
can be replaced with:
my $year = (localtime)[5] + 1900;
Since you are only using the year, there is no need to declare all those extra variables.
|
|---|