Hi,
I have some data I will read into an array that is the format
"some_string"@"date" such as "foo/bar/b...@07-23-2009-11.42.02".

To work with this, I will convert the date part (everything after
the "@" to the epoch format so it's easy to sort accurately. I
figured I would create a hash with keys being the original array
value and corresponding epoch format of the date section of each
array member.

I was going to perform a sort, then start shifting values off the
array of hash values while doing certain checks for other stuff.
This all seemed like a good approach but it seems it's rather
tedious to then lookup the hash key from the shifted array value.

Anyone got a suggestion on a smarter approach to this? I am only a
hack at Perl and don't mind reading how to execute it but I am at a
loss for a smarter way to perform this rather trivial task!

Thanks!
jlc

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to