The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.
#!/usr/bin/perl
use XML::DT;
%handler = ( contacts => sub{ [ split(";",$c)] },
             -default => sub{$c},
             -type    => { institution => 'MAP',
                           tels        => 'SEQ' });

$a = dt("ex10.2.xml", %handler);

use Data::Dumper;
print Dumper($a);