I really don't know if this is possible, but if it would....
Isn't it just possible to merge the two scripts into one?
The script could do a case switching on the date. You really
wouldn't have to change the scripts much, you just put them
into subs with the original parameters:
SWITCH: {
get_today(@params), last SWITCH if ($date eq 'today');
get_otherday($date,@params), last SWITCH if ($date nq 'today');
}
Moreover, you could consider splitting the >1,200 sites into
several blocks, let's say on alfabetical ranges. Just give an
extra parameter with a character, and only return those
sites beginning with that character. Would seriously reduce
load time.
If you want to use several forms right after each other, like
suggested in other replies, consider
php3||4. I use it, and
it certainly makes life very easy, because form-values
reappear as variables in php, which I eventually parse to
perl with system commands. Lazy coding is the
best.
Good luck,
Jeroen
I was dreaming of guitarnotes that would irritate an executive kind of guy (FZ)
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.