There's no need to carry $line_count, you can use $. instead.
And s!\n!!g; can be replaced with chomp.
Apart from that, your solution looks fine.
In reply to Re: When every 2 lines of a file (sans first) should be 1...
by moritz
in thread When every 2 lines of a file (sans first) should be 1...
by metaperl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |