Perl-Sensitive Sunglasses | |
PerlMonks |
Re: Date::Calc questionby Athanasius (Archbishop) |
on Jul 17, 2015 at 08:40 UTC ( [id://1135124]=note: print w/replies, xml ) | Need Help?? |
Hello flynn7312, any hints? Yes: Tip #4 from the Basic debugging checklist: Dump arrays, hashes and arbitrarily complex data structures. But I actually prefer to use Data::Dump:
The output from print "@c\n"; looks like a list of 3 elements, but the corresponding output from Data::Dump shows that it’s actually a single element, the string "2015,02,01". As FreeBeerReekingMonk says, the problem is the call to join which turns the list into a string. Just remove the join, and the script works as expected. Hope that helps,
In Section
Seekers of Perl Wisdom
|
|