>>>>> "HL" == Henry Law <> writes:
HL> On 29/08/11 05:01, ela wrote:
>> For a market basket analysis, I'd like to traverse a hash structure
>> containing entries like:
>>
>> my %list;
>> $list{"c1"} = "milk%cheese%coca cola";
HL> Just by the way, is this real code? Surely Perl would have tried to
HL> parse %cheese etc as the names of hash variables? Confusing at best.
confusing maybe but hashes don't interpolate in strings.
uri
--
Uri Guttman -- uri AT perlhunter DOT com ---
http://www.perlhunter.com --
------------ Perl Developer Recruiting and Placement Services -------------
----- Perl Code Review, Architecture, Development, Training, Support -------