Dave's Brain

Browse - Programming Tips - How can I get the url of the myself without the query string?

Date: 2017jun15
Language: perl
Keywords: CGI, SCRIPT_NAME

Q.  How can I get the url of the myself without the query string?

A.
sub getMyUrlNoQs() { return CGI::url(-absolute => 0, -query_string => 0); }

Add a comment

Sign in to add a comment
Copyright © 2008-2017, dave - Code samples on Dave's Brain is licensed under the Creative Commons Attribution 2.5 License. However other material, including English text has all rights reserved.