Posted By

awnstudio on 11/13/09


Tagged

Shell cli perl tt template-toolkit


Versions (?)

CLI/Shell spacing with Template--Toolkit (TT) without looping


 / Published in: Perl
 

  1. [% MACRO spacing(text) PERL %]
  2. my $n = $stash->get('text');
  3. print " " x ( 10 - length($n));
  4. [% END -%]

Report this snippet  

You need to login to post a comment.