in reply to Re^2: Possible for Map to create Hash of Hash?
in thread Possible for Map to create Hash of Hash?
It's joined again with "\034" (by default)
You will be able to access this hash from other code using $h{$store,$product}. It's easier to write than $h{"$store $product"}
If, later, you decide that store can have spaces in its name, you will rewrite your first split code, but you won't have to rewrite $h{$store,$product} in other places.
Anyway, you can ask topic starter why he need split, while he just needs to
to determine if a store has a product
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Possible for Map to create Hash of Hash?
by LanX (Saint) on May 11, 2013 at 14:27 UTC | |
by vsespb (Chaplain) on May 11, 2013 at 14:36 UTC | |
by Anonymous Monk on May 11, 2013 at 14:56 UTC | |
by LanX (Saint) on May 11, 2013 at 15:44 UTC | |
by runrig (Abbot) on May 24, 2013 at 21:37 UTC | |
by LanX (Saint) on May 24, 2013 at 22:11 UTC | |
by runrig (Abbot) on May 25, 2013 at 14:29 UTC | |
|
Re^4: Possible for Map to create Hash of Hash?
by Anonymous Monk on May 11, 2013 at 14:49 UTC |