in reply to While.For loop noob query
my @lines = <TXTIN>; for (@lines[0..($#lines - 1)]) { s/yada/yadda/; } $lines[-1] =~ s/different/substitution/;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: While.For loop noob query
by jriggs420 (Sexton) on Oct 06, 2005 at 15:05 UTC | |
by Roy Johnson (Monsignor) on Oct 06, 2005 at 15:17 UTC | |
by ikegami (Patriarch) on Oct 06, 2005 at 15:20 UTC |