<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">#!/usr/bin/perl

use XML::DT ;
use Data::Dumper;

my $filename = shift;

%xml2=('foto'    =&gt; sub{$ind{$isa}= [@{$ind{$isa}},$url]; 
                        $isa=$url="";
                        "&lt;li&gt; $c"},
       'url'     =&gt; sub{$url=$c;"&lt;a href=\"$c\"&gt;$c&lt;/a&gt;"},
       'isa'     =&gt; sub{$isa=lc($c);$c},
       'author'  =&gt; sub{uc($c) },
       'resol'   =&gt; sub{""},
       'arq'     =&gt; sub{"Indice\n". Dumper(\%ind) . "----------\n$c"},
       '-default'=&gt; sub{"$q:$c"},
       '-outputenc' =&gt; 'ISO-8859-1'
     );

%xml=( 'music'    =&gt; sub{"Autor da musica: $c"},
       'musica'   =&gt; sub{"--------------(AMP)--------\n$c"},
       'lyrics'   =&gt; sub{"Autor da letra:$c"},
       'title'    =&gt; sub{ uc($c) . $v{acordes} },
       '-default' =&gt; sub{"$q:$c"},
       'arquivo'  =&gt; sub{("_" x 60). dt($v{file},%xml2)},
       '-outputenc' =&gt; 'ISO-8859-1'
     );

print dt($filename,%xml);
</pre></body></html>