Thanks but it's nothing to do with global variables I don't think....
eg.

my $query = new CGI;
print $query->path_info();


works when a path info has been added to the URL but returns random
results when there isn't one.


Andrew

In message <[EMAIL PROTECTED]>,
Matt Sergeant <[EMAIL PROTECTED]> writes
>On Sat, 3 Mar 2001, Andrew Clark wrote:
>
>> Hi, could someone PLEASE help!
>> 
>> I am trying to write a script that if accessed through
>> 
>> http://server/script/
>> 
>> would produce HTML, where-as:
>> 
>> http://server/script/wap/ 
>> 
>> would produce WML.
>> 
>> 
>> That all worked fine until i converted to mod_perl. I did change
>> $ENV{'PATH_INFO'} to the $query->path_info() code and usually works fine
>> until there are multiple requests between wap and html.
>> 
>> from what i can tell if you access the script with /wap/ it always
>> works, but it's when you pass it nothing that I get what seems to be the
>> contents of the Environment String of PATH_INFO which as it happens is
>> the last document requested and would sometimes be /wap/.
>
>Try http://take23.org/docs/guide/porting.xml/4#4
>

-- 
Andrew Clark

_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

Reply via email to