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

Andy_Bach at wiwb.uscourts.gov Andy_Bach at wiwb.uscourts.gov
Wed Dec 3 13:44:53 CST 2003


Yes.  you're smushing them together, you probably want:
print $hash{$var1 . $var2}, "\n"; 

Which'll do proper string concats.  Usually this is a sign of an 
under-thought data structure:
$hash{$var1}->{$var2} = ....

perhaps ...

a

Andy Bach, Sys. Mangler
Internet: andy_bach at wiwb.uscourts.gov 
VOICE: (608) 261-5738  FAX 264-5030

We are REDACTED!!!



More information about the Chicago-talk mailing list