Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Clean up httpd.conf virtual host mess with perl

by nobull (Friar)
on Apr 06, 2005 at 19:05 UTC ( [id://445410]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://445410]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2024-04-23 23:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found