2 # expand and unexpand tabs as per the unix expand and
5 # expand and unexpand operate on arrays of lines. Do not
6 # feed strings that contain newlines to them.
8 # David Muir Sharnoff <muir@idiom.com>
16 @EXPORT = qw(expand unexpand $tabstop);
24 1 while s/^([^\t]*)(\t+)/
26 ($tabstop * length($2)
27 - (length($1) % $tabstop)))
38 @e = split(/(.{$tabstop})/,$x);