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); }