Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hi there Monks!

I am getting an error I cant understand, here:
#!/usr/bin/perl use warnings; use strict; use Time::Piece; my $t = Time::Piece->new(); my $date = $t->strptime(sprintf("%02d",$t->mon).$t->day_of_month.$t->y +ear, '%m%d%Y'); print"\n $date\n";
Error: Error parsing time at /usr/lib/perl/5.18/Time/

Any suggestions, I know it has to do with the "$t->year" part, just dont know how to get it to work.

Thanks for helping!