A regular may not be the best choice there. Personally, I'd split and choose split and printf. There are many other choices.
my @a = split /\|/, $line; # we still split with a regular ... printf("%-43s %s\n", @a);
-Paul
In reply to Re: Alignment of text using regex
by jettero
in thread Alignment of text using regex
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |