Get url in perl

by Nithya 2010-01-23 19:04:01

To get the url of the page we have to give the following code

use CGI;
my $query = new CGI;
$query->header;
$q=CGI->new();


#To get URL
my $url = $query->virtual_host()."".$query->script_name();

Tagged in:

982
like
0
dislike
0
mail
flag

You must LOGIN to add comments