Assumes lines are always paired after the header line:
use strict; use warnings; print scalar <STDIN>; while (<STDIN>) { chomp; print $_, scalar <STDIN>; }
In reply to Re: When every 2 lines of a file (sans first) should be 1...
by BrowserUk
in thread When every 2 lines of a file (sans first) should be 1...
by metaperl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |