hi
Assuming that
$line =~ s/\t+/\t/g;
The + modifier to the \t tells the regular expression to find one or more of the preceding thingie (in this case, a tab). The g modifier at the end tells the regular expression to perform the substitution on all occurrences of the match.
HTH
//=\\In reply to Re: parsing text file
by ViceRaid
in thread parsing text file
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |