RE: trying to parse a file...

2005-04-19 Thread Thomas, Mark - BLS CTR
Bruce, Here's a simple module that parses the Python config file format you specified. Use it like this: use ParseConfig; use warnings; use strict; my $cfg = ParseConfig->new('viewcvs.conf'); # Print only the specified root # use $cfg->show() to print the entire

RE: trying to parse a file...

2005-04-18 Thread Chris Wagner
At 12:06 PM 4/18/05 -0700, bruce wrote: >that's sort of what i had thought about. my perl's rusty. the issue i have, >is that the line with the 'svn_roots:' may/will have subsequent lines that >are part of the block. i'd like to be able to add the new information, as >the last line of the block...

RE: trying to parse a file...

2005-04-18 Thread bruce
the end of the block, and then add the new line... the viewcvs.conf file is pretty straightforward... thanks bruce -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Chris Wagner Sent: Monday, April 18, 2005 9:59 AM To: perl-win32-users@listserv.ActiveState.c

Re: trying to parse a file...

2005-04-18 Thread Chris Wagner
At 07:41 PM 4/17/05 -0700, [EMAIL PROTECTED] wrote: >it isn't working correctly... and i'm willing to consider using perl. >basically, i'd like to continually add to the svn_root: block with an >additional line as required. also, can someone tell me what i'd need to do, >if i wanted to remove a lin

RE: trying to parse a file...

2005-04-18 Thread Thomas, Mark - BLS CTR
Bruce, I'm not sure what you're looking for. If something distributed with Gforge is broken, shouldn't you ask its forum or the authors? Or are you trying to add functionality that doesn't currently exist? - Mark. > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTE