[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to extract a parameter


Fred Moyer wrote:
Tracy12 wrote:
Hi,

Is there a easy way to extract the ticket(may be using a Regular Expression)
parameter from a URL as follows

http://localhost/myTest.pl?ticket=ST-2-zbwAtOlYlfzoC6knUXP9&name=test

There is an easy way, that emulates CGI's methods. It's called libapreq2, and the class you're looking for is Apache2::Request. To get the ticket for example, you create an instance of the class, and called $req->param("ticket");

It's not part of the mod_perl package, but it is easily available.


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.