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 ...In reply to Re^4: How do I use a template, csv file and script to generate multiple switch configurations
by Laurent_R
in thread How do I use a template, csv file and script to generate multiple switch configurations
by hvh2000
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |