http://qs321.pair.com?node_id=388219


in reply to Re: perl
in thread perl

A slightly shorter version perl -pe '$c++ unless /\S/}{$_=$c' Cheers,
Random.