Re: parsing an apache-like conf-file

2001-01-31 Thread Paul J. Lucas
On Wed, 31 Jan 2001, Matt Sergeant wrote: > I've never heard anyone complain about it being slow. I'm not saying > XML::Tree isn't faster, just that I've never heard that complaint about > XML::Simple, simply because people don't use it for parsing large files, just > small config files.

Re: parsing an apache-like conf-file

2001-01-31 Thread Matt Sergeant
On Wed, 31 Jan 2001, Paul J. Lucas wrote: > You may think XML::Simple results in simpler data structures; > however, the mental energy expended to refigure stuff out makes > XML::Simple more complex in the long term. Aside from being > slow, this is another complaint abou

Re: parsing an apache-like conf-file

2001-01-31 Thread Paul J. Lucas
On Wed, 31 Jan 2001, Matt Sergeant wrote: I wrote: > > What could be simpler than: > > > > $xml = XML::Tree->new( 'foo.xml' ); > > $ref = $xml->as_array(); > > Its what's in $ref thats complex (or more complex than XML::Simple), see > the man page for XML::Simple.

Re: parsing an apache-like conf-file

2001-01-31 Thread Matt Sergeant
On Wed, 31 Jan 2001, Paul J. Lucas wrote: > On Wed, 31 Jan 2001, Matt Sergeant wrote: > > > > My XML::Tree is far faster, much smaller, and doesn't dump core: > > > > > > http://homepage.mac.com/pauljlucas/software/xml_tree/ > > > > But its not as simple to use as XML::Simple, which i

Re: parsing an apache-like conf-file

2001-01-31 Thread Paul J. Lucas
On Wed, 31 Jan 2001, Matt Sergeant wrote: > > My XML::Tree is far faster, much smaller, and doesn't dump core: > > > > http://homepage.mac.com/pauljlucas/software/xml_tree/ > > But its not as simple to use as XML::Simple, which is perfect for these > sorts of things :-)

Re: parsing an apache-like conf-file

2001-01-31 Thread Matt Sergeant
On Wed, 31 Jan 2001, Paul J. Lucas wrote: > On Wed, 31 Jan 2001, Matt Sergeant wrote: > > > Looks like a job for XML::Simple. > > Except we've had no end of trouble with it dumping core in a > mod_perl environment. Thats well explained in the AxKit FAQ: http://axkit.org/faq.xml (and

Re: parsing an apache-like conf-file

2001-01-31 Thread Paul J. Lucas
On Wed, 31 Jan 2001, Matt Sergeant wrote: > Looks like a job for XML::Simple. Except we've had no end of trouble with it dumping core in a mod_perl environment. My XML::Tree is far faster, much smaller, and doesn't dump core: http://homepage.mac.com/paul

Re: parsing an apache-like conf-file

2001-01-31 Thread Gustavo Vieira Goncalves Coelho Rios
Jonas Nordström wrote: > > I have a proxy-application that I want to make as generic as possible by > using configure files. > I have a configure file that looks something like: > > >ko-web.ei.sigma.se > > > > > info.ei.sigma.se > > > info.ei.sigma.se >

Re: parsing an apache-like conf-file

2001-01-31 Thread Steven Cotton
On Wed, 31 Jan 2001, Matt Sergeant wrote: > On Wed, 31 Jan 2001, Jonas Nordström wrote: > > > I have a proxy-application that I want to make as generic as possible by > > using configure files. > Looks like a job for XML::Simple. Or Config::General::Extended. -- steven 1;

Re: parsing an apache-like conf-file

2001-01-31 Thread Matt Sergeant
On Wed, 31 Jan 2001, Jonas Nordström wrote: > I have a proxy-application that I want to make as generic as possible by > using configure files. > I have a configure file that looks something like: > > > >ko-web.ei.sigma.se > > > > > info.ei.sigma.se > > > info.ei.si

parsing an apache-like conf-file

2001-01-31 Thread Jonas Nordström
I have a proxy-application that I want to make as generic as possible by using configure files. I have a configure file that looks something like: ko-web.ei.sigma.se info.ei.sigma.se info.ei.sigma.se Order deny, allow Deny All