| 1 | # NOTE: Derived from blib/lib/Inline/denter.pm. |
| 2 | # Changes made here will be lost when autosplit is run again. |
| 3 | # See AutoSplit.pm. |
| 4 | package Inline::denter; |
| 5 | |
| 6 | #line 290 "blib/lib/Inline/denter.pm (autosplit into blib/lib/auto/Inline/denter/indent_array.al)" |
| 7 | sub indent_array { |
| 8 | my ($o, $data) = @_; |
| 9 | my $stream = $o->_print_ref($data, '@', 'ARRAY'); |
| 10 | return $$stream if ref $stream; |
| 11 | my $indent = ++$o->{level} * $o->{width}; |
| 12 | for my $datum (@$data) { |
| 13 | $stream .= ' ' x $indent; |
| 14 | $stream .= $o->indent_data($datum); |
| 15 | } |
| 16 | $o->{level}--; |
| 17 | return $stream; |
| 18 | } |
| 19 | |
| 20 | # end of Inline::denter::indent_array |
| 21 | 1; |