Hi Joel,

----- Original Message -----
From: Stout, Joel R
Sent: 21.04.2004, 17:46 Uhr

>Call me crazy but I have visions of people asking for Winter
>discounts or various future changes (prolonged Summer rates?).  What
>of a simple text file that contains:
>
>....
>0914|80
>0915|80
>0916|55
>0917|55
>....
>
>Incredibly easy to create in Excel.  This would be something you
>could port easily in and out of a spreadsheet for management to look
>at rates and make adjustments.  No script changes needed.
>
>Take the 365 line file, split on the pipe, and dump it into a hash,
>then read the value you want as you loop through the days they
>stayed.  I haven't fully thought this out (which may show :) but if
>changes will be the least bit frequent - I'd take a closer look at
>doing something like this. - JS

I thought about this method. But in the script based on Chris' suggestion (s. my reply 
on the list) I just have to change two vars ($begin_season and $end_season) to 
prolong/shorten the season.

Then again, I'd rather offer discounts (e.g. for booking more than 14 days) and 
discount coupons during winter time than modify the standard prices directly.

Thanks for your help,

Jan
-- 
A common mistake that people make when trying to design something completely foolproof 
is to underestimate the ingenuity of complete fools.

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to