D
Dan Vesma
Morning,
I am troubled.
As you will have seen from my last post I am building myself a
timesheets system in Perl. I am reading in tasks from a file, and
would like to filter then so they relate to a specific job (via
job-number), then sorting them by date done (a job may well have quite
a few tasks done on the same day).
I can't use a 2d array, because each task has many fields.
I can't use a hash of arrays with dates as keys are there will be
duplications.
Which brings me to 3d arrays... I can't for the life of me work out
how to sort them. I've looked at PerlFAQ and perdoc perllol, but
appear not to be able to find a solution. Is my brain just feeble?
This is obviously linchpin to the whole bloomin' thing. I've been
thinking for hours trying to work out code to sort a 3D array, but
can't do it. Arg! This must have been done before. I take it that you
can't sort a hash of arrays by one of the array values!?!
Please help me. Please. You're all better people than me.
Thanks in advance.
Daniel V
I am troubled.
As you will have seen from my last post I am building myself a
timesheets system in Perl. I am reading in tasks from a file, and
would like to filter then so they relate to a specific job (via
job-number), then sorting them by date done (a job may well have quite
a few tasks done on the same day).
I can't use a 2d array, because each task has many fields.
I can't use a hash of arrays with dates as keys are there will be
duplications.
Which brings me to 3d arrays... I can't for the life of me work out
how to sort them. I've looked at PerlFAQ and perdoc perllol, but
appear not to be able to find a solution. Is my brain just feeble?
This is obviously linchpin to the whole bloomin' thing. I've been
thinking for hours trying to work out code to sort a 3D array, but
can't do it. Arg! This must have been done before. I take it that you
can't sort a hash of arrays by one of the array values!?!
Please help me. Please. You're all better people than me.
Thanks in advance.
Daniel V