Re: Unknown level of hash
[email protected] (Alexandre Jousset)
| Newsgroups | perl.fwp |
|---|---|
| Message-ID | <[email protected]> |
п║я┐я┘п╟п╫п╬п╡ п▓п╟п╢п╦п╪ wrote:
[snip code...]
> gives:
>
> $VAR1 = {
> 'E1' => {
> 'E2' => {
> 'E3' => {
> 'En' => 1
> }
> },
> 'E3' => {
> 'E1' => {
> 'Ex' => {
> 'Ey' => {
> 'Ez' => undef
> }
> }
> }
> }
> }
> };
>
Ok, but it should be possible to set the same hash, with another array
sharing some starting elements and not destroy the previous hash. The
result of my previous sample code should be :
$VAR1 = {
'E1' => {
'E2' => {
'E3' => {
'En' => 1
}
},
'Ex' => {
'Ey' => {
'Ez' => 1
}
}
}
};
You can't do that with this method...
--
\^/
-/ O \----------------------------------------
| |/ \| Alexandre (Midnite) Jousset |
-|___|----------------------------------------