Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I would like it to be:222.222.333.444:firstServer 121.222.222.222:secondServer
here is my script as of now:firstServer secondServer
@a = (<DATA>); $file = "bas.txt"; foreach (@a) { open(FILE,">>$file") || die "Can't open $file: $! \n"; print FILE "$_\n"; } close(FILE); close(DATA); __DATA__ 222.222.333.444:firstServer 121.222.222.222:secondServer
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Manipulating Output
by Abigail-II (Bishop) on Jul 09, 2002 at 14:34 UTC | |
by Anonymous Monk on Jul 09, 2002 at 15:32 UTC | |
by Abigail-II (Bishop) on Jul 09, 2002 at 15:34 UTC | |
by Anonymous Monk on Jul 09, 2002 at 15:43 UTC | |
|
Re: Manipulating Output
by ehdonhon (Curate) on Jul 09, 2002 at 15:00 UTC | |
by Abigail-II (Bishop) on Jul 09, 2002 at 15:12 UTC | |
by redsquirrel (Hermit) on Jul 09, 2002 at 15:12 UTC | |
|
(zdog) Re: Manipulating Output
by zdog (Priest) on Jul 09, 2002 at 15:56 UTC | |
|
Re: Manipulating Output
by hiseldl (Priest) on Jul 09, 2002 at 15:16 UTC |