Hi All,
I got the date function working, thank you all for you help. Now, i have an Array(not sure if its the best way to do this) of elements of $location;$date;$time+. This is just one element in the array and the + is the delimeter. For example when i print out the info in the array i get.
Mexico City, Mexico;2/27/2002;8:30 am+Mexico City, Mexico;2/27/2002;2:00 pm+Albany, NY;10/26/2001;8:30 am+. Which contains three different elements. Now what i want to do is compare these elements to see if there are two elements that are in the same city and date, and have an AM and PM in the time. In this example there is one:
Mexico City, Mexico;2/27/2002;8:30 am
Mexico City, Mexico;2/27/2002;2:00 pm
These are both in the same city, same date, and have an AM and PM. These are courses with prices, so what i want to do then is if there is one, or two and so forth give each course a %25 discount.
Any help on how to go about this will be greatly appreciated.
Thanx,
Kiko
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.