Hello again
Michael G Schwern
schwern at pobox.com
Tue Jan 29 05:41:21 CST 2002
On Tue, Jan 29, 2002 at 11:28:19AM +0000, Stray Toaster wrote:
> On Tue, Jan 29, 2002 at 11:19:09AM -0000, Terrential wrote:
> > Hello, I've got another problem.
> >
> > say i have a url: http://www.terrential.com/ecards/ecard.pl
> > is there anyway that i can get the www.terrential.com bit on its own thru
> > some sort of reg exp??
>
> use Apache;
>
> my $r = Apache->request;
>
> my $hn = $r->hostname;
This is sort of like cleaning your gutters with a fire hose.
--
Michael G. Schwern <schwern at pobox.com> http://www.pobox.com/~schwern/
Perl Quality Assurance <perl-qa at perl.org> Kwalitee Is Job One
MERV GRIFFIN!
More information about the Belfast-pm
mailing list