|
From: ryan.311 <rya...@os...> - 2001-11-14 01:29:47
|
A quick fix:
>Ugh... Fine. I added support for both ways, however:
>
>my @query_string = split(/,/, length param("date") > 0 ? param("date") :
>unescape($ENV{QUERY_STRING}));
>@from_date = @query_string if(@query_string == 6);
>
>This will let you use either countdown.pl?2002,9,7,0,0,0 or
>countdown.pl?date=2002,9,7,0,0,0.
Wog from perlmonks informed me that calling param("keywords") will return
2002,9,7,0,0,0 when the query string is countdown.pl?2002,9,7,0,0,0. So
that makes the code:
my @query_string = split(/,/, length param("date") > 0 ? param("date") :
param("keywords"));
@from_date = @query_string if(@query_string == 6);
|