Skip Menu |

This queue is for tickets about the Sort-Key-DateTime CPAN distribution.

Report information
The Basics
Id: 127537
Status: resolved
Priority: 0/
Queue: Sort-Key-DateTime

People
Owner: Nobody in particular
Requestors: NHORNE [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.07
Fixed in: (no value)



Subject: Doesn't work on array of hashes
This program says: "Can't call method "dtkeysort" on an undefined value" use strict; use warnings; use autodie qw(:all); use Error qw(:try); use DateTime; use Sort::Key::DateTime; use Data::Dumper; my @list; push @list, { datetime => DateTime->today() }; push @list, { datetime => DateTime->today() }; push @list, { datetime => DateTime->today() }; @list = Sort::Key::Datetime::dtkeysort { $_->{'datetime'} } @list; print Data::Dumper->new([\@list])->Dump();
Got it firgured out.