|Keep It Simple, Stupid|
Re^2: Trouble grepping values when hash contains multiple values per keyby dirtdog (Beadle)
|on Jun 05, 2010 at 16:55 UTC||Need Help??|
When i pasted the code in, some of the syntax got messed up, specifically the curly braces, but i did have the same syntax that you had
I ran what you had and it did work beautifully
ultimately, i'm trying to get the following piece of code to work. Basically, I have my date and i check it against the calendar file to see if the date is a holiday...if it does exist it means it's a holiday so i increment the date by 1 day (unless it's a sat or sun..then i increment it until it's not sat or sun..this piece of logic works), then i check the newly incremented date against the holiday file again. I repeat this until it doesn't exist in the holiday file. Then i know i have a date that's not a holiday.
The following code for some reason is not working for me. It's hitting the until loop but not entering it even if the newly incremented date is also a date in the holiday file
You may need to mock up the holiday config file with back to back holiday's to create the scenario$date='20100101'; $new_date=get_next_bus_day($date);
Do you see any obvious reason why this wouldn't work?