in reply to Re^3: How do I use a template, csv file and script to generate multiple switch configurations
in thread How do I use a template, csv file and script to generate multiple switch configurations

Hi, Getting the below error: >perl test.pl syntax error at test.pl line 16, near ") next " syntax error at test.pl line 28, near ") s/##location##/$location/" Execution of test.pl aborted due to compilation errors.
  • Comment on Re^4: How do I use a template, csv file and script to generate multiple switch configurations

Replies are listed 'Best First'.
Re^5: How do I use a template, csv file and script to generate multiple switch configurations
by Corion (Patriarch) on Jun 27, 2014 at 05:37 UTC

    I don't get that error on line 16 when testing the file. It helps us help you much better if you post the exact error messages and also the exact code where you encounter the error.

    The problem with the code as given is just a small syntax error caused by a forgotten semicolon in line 10. Maybe you want to learn about how to debug such trivial errors?