Hi there.!
Im seeking for your wisdom!
I need to know how i can push this calue $ServiceRef fomr this piece of code to an array of hash of hashes:
elsif (/<ServiceRef>(.+?)<\/ServiceRef>/) {
$serviceref = $1;
$index{"ID$counter"}{"sons"} = [$serviceref];
}
As you see im capturing a regex expresion into $serviceref and i want toload every matches has been found into the array into de hash of hashes $index{"ID$counter"}{"sons"}
[here should be an array reference, isnt ?
].
As i has wrote its seems doesnt running properly, maybe something its mistakes. I need to do that because i need to keep every matched result of the regex expression because "a father could have more than a son".
Thanks in advance!