[Chicago-talk] specifying 2 variables as 1 hash key

Paul Baker pbaker at where2getit.com
Wed Dec 3 16:55:23 CST 2003


On Dec 3, 2003, at 1:36 PM, Dooley, Michael wrote:

> print "$hash{$var1$var2}"; #this does not work.

That's because you want this:

print $hash{"$var1$var2"};

-- 
Paul Baker

"They that can give up essential liberty to obtain a little temporary 
safety deserve neither liberty nor safety."
           -- Benjamin Franklin, 1759




More information about the Chicago-talk mailing list