[Kc] repeating \t TAB in print statement?

David Nicol davidnicol at gmail.com
Fri Dec 15 11:56:42 PST 2006


Here is some sugar that will not mess up your clear result-print
line with obscure syntax, by hiding it elsewhere:

use Tie::Function 0.01;
tie my %indent, Tie::Function => sub{"\t"x$_[0]};
...
print "$indent{$level} $rest $of $mydata";


On 12/14/06, Daryl Fallin <darylvf at gmail.com> wrote:
> I thought something like print ("\t{$level} $rest $of $mydata"); would work.

-- 
He thought he could organize freedom
how naive and controlling of him


More information about the kc mailing list