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:
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!
I am getting an error I cant understand, here:
Error: Error parsing time at /usr/lib/perl/5.18/Time/Piece.pm#!/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";
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!
Back to
Seekers of Perl Wisdom