in reply to When every 2 lines of a file (sans first) should be 1...
Assumes lines are always paired after the header line:
use strict; use warnings; print scalar <STDIN>; while (<STDIN>) { chomp; print $_, scalar <STDIN>; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: When every 2 lines of a file (sans first) should be 1...
by tuxz0r (Pilgrim) on Dec 04, 2007 at 19:52 UTC |