P is for Practical | |
PerlMonks |
Re: Cisco to Juniper - parser helpby jwkrahn (Abbot) |
on May 25, 2021 at 06:33 UTC ( [id://11133003]=note: print w/replies, xml ) | Need Help?? |
A major problem with your code are these lines:
undef can NOT be used in a comparison, you have to use the defined function to determine if a variable is defined or not. You also don't need the if/elsif/else structure:
Another problem is a lot of "uninitialized value" messages which can be fixed by initializing all your variables.
Try running your code with those changes and post again with your feedback.
In Section
Seekers of Perl Wisdom
|
|