in reply to Lazy TWiki-inspired question

use CGI; my $cgi = CGI->new(); my @path_params = split /\//, $cgi->path_info();

-Colin.

WHITEPAGES.COM | INC

Replies are listed 'Best First'.
Re^2: Lazy TWiki-inspired question
by Melly (Chaplain) on Feb 22, 2006 at 20:28 UTC

    Thanks - I'm still non-plussed as to why the server doesn't just return a 404 when it tries to access /bin/view/Main/WebHome, but I'll fire up a local apache server, rustle up a script, read some docs, and figure it out....

    Tom Melly, tom@tomandlu.co.uk

      The server knows what to do with /bin/view and in lieu of knowing what to do with a path more specific, invokes that program, passing the full URI. Web servers don't have to map URIs to file paths at all; that's just the most useful and most prevalent default behavior.

        Ah - I see. So this is just as much an Apache question as a perl one?

        Tnx all - I'll read and test up...

        Tom Melly, tom@tomandlu.co.uk