Thanx Jarle!
I've tried to find the perl way for excluding empty lines a million
times before, but never succeeded.
Cheers,
Kare
On Mon, 2006-11-27 at 11:57 +0000, Jarle Brinchmann wrote:
> > I've got a bunch of data files I need to read, but unfortunately they
> > contain some empty lines that I need to exclude.
> >
> > How do I specify empty lines with the EXCLUDE option in rcols?
> >
> Pretty much as you would if you read in Perl:
>
> @cols = rcols 'data.dat', {Exclude => '/^\s*$/'}
>
> Probably should be an option for this - or automatic dropping in rcols.
> It is semi-often that I have this problem + need to exclude other lines
> (header lines for instance).
>
> Cheers,
> J.
>
_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl