[PLUG] Perl strategies for parsing multi-line configs

Chris Jantzen chris at maybe.net
Thu Mar 18 14:41:02 UTC 2004


On Thu, Mar 18, 2004 at 02:34:54PM -0800, Stafford A. Rau wrote:
> I often have to compile information from things like Cisco configs, and
> I'm hoping for some suggestions to deal with this in a more elegant
> fashion than my normal mess of "if (/^interface/) { ...blah...; }".

I'm told good things about Parse::RecDescent. You should know
something about lexers, though.

-- 
chris kb7rnl =->
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.pdxlinux.org/pipermail/plug/attachments/20040318/d924f3c0/attachment.asc>


More information about the PLUG mailing list