in reply to Parsing by indentation

What about Cisco::Reconfig? Sure, i‘m aware that i guessed once more. Regards, Karl

«The Crux of the Biscuit is the Apostrophe»

perl -MCrypt::CBC -E 'say Crypt::CBC->new(-key=>'kgb',-cipher=>"Blowfish")->decrypt_hex($ENV{KARL});'Help

Replies are listed 'Best First'.
Re^2: Parsing by indentation
by llarochelle (Beadle) on Oct 29, 2018 at 15:00 UTC
    Hi Karl, I've played a little with Cisco::Reconfig and I'm still not sure why I didn't enjoyed it as much as it was promising ... In fact this is exactly when I decided I should start working on a general parser to get context by indentation (node - child relation). And I needed something that would work with all the vendors too, so I thought it might be easier to write rules based on the vendor, only when necessary. Accessing the data structure was unfriendly and I would have had to build a config file around it to address my needs ... Well, thanks for the suggestion anyways, it's always good to evaluate many options. Luc