On Thu, 28 Jun 2001, Tyler Longren wrote:
> I'm just starting perl. I want to search through httpd.conf and get the
> ServerName from each virtual host.
Sure:
open(APACHE_CONF, "httpd.conf") or die "Could not open Apache config file:
$!\n";
my @servernames;
while(<APACHE_CONF>) {
if(/^ServerName\s(.*)$/i) {
push @servernames, $1;
}
}
close(APACHE_CONF);
-- Brett
http://www.chapelperilous.net/btfwk/
------------------------------------------------------------------------
Tuesday After Lunch is the cosmic time of the week.
- arrays Yacketta, Ronald
- Re: arrays Brett W. McCoy
- Re: arrays Gary Stainburn
- Re: arrays Brett W. McCoy
- RE: arrays John Edwards
- RE: arrays Kipp, James
- RE: arrays Kipp, James
- arrays Tyler Longren
- Re: arrays Bill Pierson
- Re: arrays dave hoover
- Re: arrays Brett W. McCoy
- Re: arrays Tyler Longren
- Re: arrays Tyler Longren
- Re: arrays Brett W. McCoy
- Re: arrays dave hoover
- RE: arrays John Edwards
- arrays Matija Papec
- Re: arrays Jeff 'japhy/Marillion' Pinyan
- Re: arrays Troy Denkinger
- Re: arrays Matija Papec
- RE: arrays John Edwards
