Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^4: How do I use a template, csv file and script to generate multiple switch configurations

by Laurent_R (Canon)
on Apr 15, 2013 at 20:45 UTC ( [id://1028770]=note: print w/replies, xml ) Need Help??


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 ...
  • Comment on Re^4: How do I use a template, csv file and script to generate multiple switch configurations
  • Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1028770]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (8)
As of 2024-04-19 12:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found