3 # unicode-aware expand(1) replacement
6 binmode STDIN
, ":utf8";
7 binmode STDOUT
, ":utf8";
10 $tabstopMinusOne = $tabstop - 1;
14 s/((?<A>[^\t]{0,$tabstopMinusOne})\t|(?<A>[^\t]{$tabstop}))/sprintf "%s%s", $+{A}, " " x ($tabstop - length $+{A})/ge;