Home: Perl Programming Help: mod_perl:
Extract Base URL



mohanbvn
New User

Dec 27, 2010, 1:34 AM


Views: 28978
Extract Base URL

Hi,

I am new to perl module, please guide me how to get the main base url address from the sub page url address

Example : Sub page "http://www.example.com/aboutus"
Output : "http://ww.example.com.

Guide me please, thanks in advance.

Regards,
mohanbvn.


FishMonger
Veteran / Moderator

Dec 27, 2010, 7:32 AM


Views: 28971
Re: [mohanbvn] Extract Base URL

See: http://search.cpan.org/~gaas/URI-1.56/URI.pm