in reply to Re: Possible for Map to create Hash of Hash?
in thread Possible for Map to create Hash of Hash?

$h{$store, $product}=1;
This is flaky to say the least. I assume you meant
$h{"$store,$product"}=1;
so atleast it'd be possible to pick them apart later on.

Even so, it will only be a matter of time until a store pops up with a comma in its name and you'll have to start rethinking the whole thing. Maybe try two or three different delimiters before rewriting to use a better suited data structure.

Like, say, a hash of hashes ;-)

-- Time flies when you don't know what you're doing

Replies are listed 'Best First'.
Re^3: Possible for Map to create Hash of Hash?
by vsespb (Chaplain) on May 13, 2013 at 16:58 UTC
    I assume you meant $h{"$store,$product"}=1;
    No. Re-read my posting. Also, click the link in my posting and read perldoc article.