awohld has asked for the wisdom of the Perl Monks concerning the following question:
The output should print:#!/usr/bin/perl $node_number = [1,2,3,4,5]; while ($node_number) { print <<EOF; node = $node_number ccu = 5 ccu2 = 9 tacaf = y enable = y sync = 8 EOF $node_number++ }
node = 1 ccu = 5 ccu2 = 9 tacaf = y enable = y sync = 8 node = 2 ccu = 5 ccu2 = 9 tacaf = y enable = y sync = 8 node = 3 ccu = 5 ccu2 = 9 tacaf = y enable = y sync = 8 node = 4 ccu = 5 ccu2 = 9 tacaf = y enable = y sync = 8 node = 5 ccu = 5 ccu2 = 9 tacaf = y enable = y sync = 8
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Reprinting Text With Changing Fields
by moot (Chaplain) on Apr 19, 2005 at 16:42 UTC | |
|
Re: Reprinting Text With Changing Fields
by gellyfish (Monsignor) on Apr 19, 2005 at 16:42 UTC | |
|
Re: Reprinting Text With Changing Fields
by dmorelli (Scribe) on Apr 19, 2005 at 16:50 UTC | |
|
Re: Reprinting Text With Changing Fields
by tlm (Prior) on Apr 19, 2005 at 17:01 UTC | |
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 |