It is completely unclear what you are asking but is is clear that your
question has nothing whatever to do with Perl.
You appear to be asking how to write a relative URL.
If you have a page with a URL
http://www.example.com/this/that/other/page.html
And you want to link to
http://www.example.com/this/here/script.cgi
Then you can use a relative link '../../here/script.cgi' or
'/this/here/script.cgi'.
For details read documents about URLs.
..... http://www.example.com/<Tag_Dir_Mine_Path1>/script.cgi .....
just replace all <Tag_Dir_Mine_Path1> with whats passed in from cmdline
or set up a config.ini with machine names
and how you want its paths setup:
[Machine-1]
Tag_Dir_Mine_Path1 = ../dir
Source_Out = //machine1/webroot
[Machine-2]
Tag_Dir_Mine_Path1 = ../dir
Source_Out = //machine2/webroot
etc ...
c:\> perl prog.pl /c:config.ini:ALL
or
c:\>perl prog.pl ../dir //machine1/webroot