- Get current requested url (no parameters)
- Get all GET parameters as hash
- Convert hash to
key1=val1&key2=val2...
I think these are necessary tools in web development.
How do you do this in Perl?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It sounds like you’re trying to re-invent web development again from scratch. Don’t do this.
The CGI module is also probably not a good place to start if you’re new to this. Look at one of the many modern frameworks that already exist to prevent you from having to ever care about parsing request parameters, construct GET URL’s and the like.
I like Mojolicious but it’s one of many.