% if ( ref $links eq 'ARRAY' && scalar @$links ) { % my $deflink = $links->[0]; % my $auto = ''; % if ( exists $deflink->{auto} && ref $deflink->{auto} eq 'HASH' ) { % while ( my ($from, $to) = each %{ $deflink->{auto} } ) { % $auto .= '&from='.$from.'&to='.$document->$to; % } % }
Зависимости этого документа
% my $i = 0; % foreach my $link ( @$links ) { % my $auto = ''; % if ( exists $link->{auto} && ref $link->{auto} eq 'HASH' ) { % while ( my ($from, $to) = each %{ $link->{auto} } ) { % $auto .= '&from='.$from.'&to='.$document->$to; % } % } <% $link->{name} %>\ % $i++; % }
% } <%args> $document => undef <%init> return unless ref $document; my $links = $document->table_links;