Help for this page
> perldoc -q tabs
Found in /usr/local/lib/perl5/5.6.1/pod/perlfaq4.pod
@expanded_lines = expand(@lines_with_tabs);
Occasionally, you can't use just a `/g' to get all the changes to
occur that you might want. Here are two common cases:
# expand tabs to 8-column spacing
1 while s/\t+/' ' x (length($&)*8 - length($`)%8)/e;
print "\et" x ($tab/8), ' ' x ($tab%8); # tab over
By rote learning.
Via Genetic memory.
It's provided by my firmware.
I just remember them.
Thirty days hath September
My computer gets it right, usually.
I just ask someone else.
Someone punches me on the first of the month.
Results (207 votes),