Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
while (<IN>) { push @new, $_ =~ m/^\S+\s+\S+\s+\S+\s+\S+\s+\S+\s+\S+\s+.*/; $num =scalar$#new; print "\n$num\n"; } while (<REPLACE>) { $- =~ s/^\S+\s+\S+\s+\S+\s+\S+\s+\S+\s+\S+(\s+.*)/$new[$i++] $1/; print OUT $_; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: $- ??
by davido (Cardinal) on Sep 26, 2004 at 16:37 UTC | |
|
Re: $- ??
by Zed_Lopez (Chaplain) on Sep 26, 2004 at 16:40 UTC | |
|
Re: $- ??
by ikegami (Patriarch) on Sep 26, 2004 at 18:35 UTC |