bonjour,
Avec la bibliotheque XML::Simple, quand je parse mon fichier,
j'obtient un tableau de hash...
@int = $fichier->{int};
print Data::Dumper->Dump([\@int],['*int']);
@int = (
[
{
'type' => 'vl1',
'mib' => '1',
'descr' => {}
},
{
'type' => 'fa0/1',
'mib' => '2',
'descr' => 'deck'
},
{
'type' => 'fa0/2',
'mib' => '3',
'descr' => 'deck2'
},
{
'type' => 'fa0/3',
'mib' => '4',
'descr' => ' user440 '
},
{
'type' => 'fa0/4',
'mib' => '5',
'descr' => 'same-as-you'
(…)
Forum Programmation.perl Tableau de hash, comment connaitre ça taille.
23
mar.
2006