« blib/lib/DTL/Fast/Filter/Ljust.pm
↑ Summary
blib/lib/DTL/Fast/Expression/Operator/Unary/Logical.pm »
| 1 | package DTL::Fast::Filter::Rjust; | ||
| 2 | 2 | ▶ | use strict; use utf8; use warnings FATAL => 'all'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
Subroutine
BEGIN: called CC=1 SCAR=0.0
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 2 | ▶ | use parent 'DTL::Fast::Filter::Center'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | |||
| 5 | 2 | $DTL::Fast::FILTER_HANDLERS{'rjust'} = __PACKAGE__; | |
| 6 | |||
| 7 | #@Override | ||
| 8 | sub adjust | ||
| 9 | { | ||
| 10 | 2 | ▶ | my $self = shift; |
|
Subroutine
adjust: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 11 | 2 | my $value = shift; | |
| 12 | 2 | my $adjustment = shift; | |
| 13 | 2 | return (' 'x $adjustment).$value; | |
| 14 | } | ||
| 15 | |||
| 16 | 2 | 1; | |