mikevanhoff has asked for the wisdom of the Perl Monks concerning the following question:
I expected to get:**************************************** #Open a file open(MYFILE,"c:\\perl\\Files\\zones2add.txt") || die("Cannot open file"); #open(MYOUT,">c:\\perl\\Files\\myout.txt"); while(<MYFILE>) { print "tdnscmd \. /recordadd $_ www a 12.39.123.78\n"; } # close the file close MYFILE; *********************************** Input file: Aedonstaffing.biz Aedonstaffing.info Aedonstaffing.net Aedonstaffing.org ************************** output tdnscmd . /recordadd Aedonstaffing.biz www a 12.39.123.78 tdnscmd . /recordadd Aedonstaffing.info www a 12.39.123.78 tdnscmd . /recordadd Aedonstaffing.net www a 12.39.123.78 tdnscmd . /recordadd Aedonstaffing.org www a 12.39.123.78 *********************************
tdnscmd . /recordadd Aedonstaffing.org www a 12.39.123.78
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl Output
by pzbagel (Chaplain) on Apr 23, 2003 at 21:05 UTC | |
by mikevanhoff (Acolyte) on Apr 24, 2003 at 12:29 UTC | |
|
Re: Perl Output
by Abigail-II (Bishop) on Apr 23, 2003 at 21:32 UTC | |
by mikevanhoff (Acolyte) on Apr 24, 2003 at 12:33 UTC | |
by Abigail-II (Bishop) on Apr 24, 2003 at 12:36 UTC |