(AVISO: a seguinte mensagem faz uso da formatação HTML)<br><br>Tenho a seguinte dúvida de longa data... Passei perltidy no seguinte código:<br><br><span style="font-family: courier new,monospace;">my %avg = (</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> hits<span style="background-color: rgb(255, 255, 51);"> </span>=> 0,</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> bids<span style="background-color: rgb(255, 255, 51);"> </span>=> 0,</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> price<span style="background-color: rgb(255, 255, 51);"> </span>=> 0,</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">);</span><br style="font-family: courier new,monospace;">
<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">$attr->{leaf}<span style="background-color: rgb(255, 255, 51);"> </span>= $categ->[0];</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">$attr->{lft}<span style="background-color: rgb(255, 255, 51);"> </span>= $categ->[3];</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">$attr->{rgt}<span style="background-color: rgb(255, 255, 51);"> </span>= $categ->[4];</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">$attr->{upd}<span style="background-color: rgb(255, 255, 51);"> </span>= $hist->now;</span><br><br clear="all">As atribuições ("=>" e "=") foram alinhadas pelo nome mais longo ('price', no primeiro caso, e '$attr->{leaf}', no segundo, destaquei os espaços em amarelo para visualizar).<br>
Gostaria de saber se é possível alinhar pelo nome mais longo MAIS indentação, ou seja, este mesmo exemplo ficaria como:<br><br><span style="font-family: courier new,monospace;">my %avg = (</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> hits<span style="background-color: rgb(255, 255, 51);"> </span>=> 0,</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> bids<span style="background-color: rgb(255, 255, 51);"> </span>=> 0,</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> price<span style="background-color: rgb(255, 255, 51);"> </span>=> 0,</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">);</span><br style="font-family: courier new,monospace;">
<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">$attr->{leaf}<span style="background-color: rgb(255, 255, 51);"> </span>= $categ->[0];</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">$attr->{lft}<span style="background-color: rgb(255, 255, 51);"> </span>= $categ->[3];</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">$attr->{rgt}<span style="background-color: rgb(255, 255, 51);"> </span>= $categ->[4];</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">$attr->{upd}<span style="background-color: rgb(255, 255, 51);"> </span>= $hist->now;</span><br><br>ABS()<br><br>