msnr
asked on
date comarision script
i have a file like this
usera date of birth 10-July-00
userb date of birth 08-Sep-01
userc date of birth 15-Apr-02
userd date of birth 03-Jan-00
---
--
-- etc
i want to know all the users whose date of birth is before jan-02.
how can i find.?
msnr
usera date of birth 10-July-00
userb date of birth 08-Sep-01
userc date of birth 15-Apr-02
userd date of birth 03-Jan-00
---
--
-- etc
i want to know all the users whose date of birth is before jan-02.
how can i find.?
msnr
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Man, you really need to get Perl into your life!
There are any number of ways to go about this type of sorting problem. You could set a lookup table where you map the months to a numeric value and then compare based on that, or just do a compound comparison based on the months as text.
There are any number of ways to go about this type of sorting problem. You could set a lookup table where you map the months to a numeric value and then compare based on that, or just do a compound comparison based on the months as text.
No comment has been added lately, so it's time to clean up this Topic Area.
I will leave a recommendation for this question in the Cleanup topic area as follows:
- Answered by billwcc
Please leave any comments here within the next 7 days
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER !
tfewster
Cleanup Volunteer
I will leave a recommendation for this question in the Cleanup topic area as follows:
- Answered by billwcc
Please leave any comments here within the next 7 days
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER !
tfewster
Cleanup Volunteer
per recommendation
SpideyMod
Community Support Moderator @Experts Exchange
SpideyMod
Community Support Moderator @Experts Exchange
ASKER
for ex..... before 2002 july...