Initial commit of OpenSPARC T2 design and verification files.
[OpenSPARC-T2-DV] / tools / perl-5.8.0 / lib / site_perl / 5.8.0 / auto / Inline / denter / indent_array.al
CommitLineData
86530b38
AT
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.
4package Inline::denter;
5
6#line 290 "blib/lib/Inline/denter.pm (autosplit into blib/lib/auto/Inline/denter/indent_array.al)"
7sub 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
211;