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


in reply to parsing text file

On the basis of the same assumptions ViceRaid makes above, you could also do the following:

$line =~ s/\t{2,}/\t/g;

This only matches on occurences of two or more tabs, and hence would prevent any single tabs within your data from being stripped.

--cs

There are nights when the wolves are silent and only the moon howls. - George Carlin