in reply to Clean up httpd.conf virtual host mess with perl

I agree with everything Pustular Postulant says but I would add that by moving the capture limits you could avoid needing to reconstrict the VirtualHost stanza header/footer.
my @vhosts = $content =~ /($start.*?$finish)/sg;

Replies are listed 'Best First'.
Re^2: Clean up httpd.conf virtual host mess with perl
by redhotpenguin (Deacon) on Apr 06, 2005 at 20:37 UTC
    Ah that's very cool. Thank you all for your feedback. This was a good learning experience.