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
You need to declare your variables before using them, using the "my" function. Change the relevant line to:
my $template_file_name = "configtemplate.txt";Same things for other variables displaying the same error message.For example:
my ($location, $hostname, $ip) = split ...
|
|---|