Don't ask to ask, just ask | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
> It doesnt matter how it reads/writes, as long as the output is coherent
Sorry I don't know what that means. ° Can you output each service independently or do you need to know all the data before writing?
UpdateMy approach would be using a flip-flop operator to read each service and to output at the end. Each line would be processed by a dedicated subroutine based on the first word. Like service::description() and so on. This would make your code far more readable and easier to maintain.
Cheers Rolf °) I can help you with Perl, but not with Cisco or Juniper, sorry. In reply to Re^3: Cisco to Juniper - parser help
by LanX
|
|