in reply to Reprinting Text With Changing Fields
As others already pointed out, your original code was not handling an array ref properly (and didn't need it in the first place). But if your question is how to give different node sets to the loop, you could try:
Then you can invoke your program with:my @node_number = @ARGV; for my $nn ( @node_number ) { print <<EOF; node = $nn ccu = 5 ccu2 = 9 tacaf = y enable = y sync = 8 EOF }
% perl my_program.pl 4 13 1 22 14
the lowliest monk
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Reprinting Text With Changing Fields
by awohld (Hermit) on Apr 20, 2005 at 18:46 UTC | |
by tlm (Prior) on Apr 20, 2005 at 18:56 UTC | |
by awohld (Hermit) on Apr 20, 2005 at 19:12 UTC |