in reply to Complex Hash of Hashes Data Structure

The syntax you are looking for is :
push @{$hash{$counter}{url}}, "http://my.url.com";
If you are trying to count unique URLs for each $counter, try:
$hash{$counter}{url}{$CurrentURL}++; # Auto-vivify and count

     "For every complex problem, there is a simple answer ... and it is wrong." --H.L. Mencken

Replies are listed 'Best First'.
Re^2: Complex Hash of Hashes Data Structure
by Anonymous Monk on Jun 02, 2006 at 01:07 UTC
    The syntax of pushing the value onto the hash key did the trick. I used data::Dumper and here is a sample of a record:
    '46' => { 'doc' => 'J 29.9/6:', 'url' => [ 'http://www.myurl.com', 'http://www.mysecondurl.com' ], 'item' => { '2' => undef }, 'title' => 'Sourcebook of criminal justice statist +ics' },
    What took me more than a day, you guys resolved in less than a few minutes. Thank you all. I really appreciate it.