in reply to Re^7: Hash Value via Data::Dumper
in thread Hash Value via Data::Dumper

Hi HDB, Not able to get any output, can you please check from your side? Thanks, John

Replies are listed 'Best First'.
Re^9: Hash Value via Data::Dumper
by hdb (Monsignor) on Jun 14, 2013 at 17:53 UTC

    I get

    User xyz123 had 5 searches on connection 13570 => Bad user! User xyz123 had 5 searches on connection 13572 => Bad user! User someoneelse had 2 searches on connection 13571 $VAR1 = { 'xyz123' => [ '13570', '13572' ], 'someoneelse' => [ '13571' ] }; $VAR1 = { '13571' => [ '04/Jun/2013:18:06:17 -0600', '04/Jun/2013:18:06:17 -0600' ], '13572' => [ '04/Jun/2013:15:06:13 -0600', '04/Jun/2013:15:06:14 -0600', '04/Jun/2013:15:06:15 -0600', '04/Jun/2013:15:06:16 -0600', '04/Jun/2013:15:06:17 -0600' ], '13570' => [ '04/Jun/2013:15:06:13 -0600', '04/Jun/2013:15:06:14 -0600', '04/Jun/2013:15:06:15 -0600', '04/Jun/2013:15:06:16 -0600', '04/Jun/2013:15:06:17 -0600' ] };
Re^9: Hash Value via Data::Dumper
by johnrein55 (Novice) on Jun 14, 2013 at 18:32 UTC
    Hi HDB,

    Thanks it is working for me as well, however there might be chances when "SRCH=Q" string will not be there within the logs. When I remove this string from the logs, it gives me undefined error

    [04/Jun/2013:13:06:13 -0600] conn=13570 op=14 msgId=13 - BIND dn="uid= +xyz123,ou=People,o=xyz.com" method=128 version=3 [04/Jun/2013:15:06:13 -0600] conn=13570 op=14 msgId=15 - RESULT err=0 +tag=101 nentries=48030 etime=139 SRCH=Q [04/Jun/2013:13:06:13 -0600] conn=13572 op=14 msgId=13 - BIND dn="uid= +xyz123,ou=People,o=xyz.com" method=128 version=3 [04/Jun/2013:15:06:13 -0600] conn=13572 op=14 msgId=15 - RESULT err=0 +tag=101 nentries=48030 etime=139 SRCH=Q [04/Jun/2013:17:06:13 -0600] conn=13571 op=14 msgId=13 - BIND dn="uid= +someoneelse,ou=People,o=xyz.com" method=128 version=3 [04/Jun/2013:18:06:17 -0600] conn=13571 op=14 msgId=15 - RESULT err=0 +tag=101 nentries=48030 etime=139 SRCH=Q [04/Jun/2013:13:06:13 -0600] conn=13573 op=14 msgId=13 - BIND dn="uid= +xyz123,ou=People,o=xyz.com" method=128 version=3 [04/Jun/2013:15:06:13 -0600] conn=13573 op=14 msgId=15 - RESULT err=0 +tag=101 nentries=48030 etime=139

    Error :

    User xyz123 had 1 searches on connection 13570 User xyz123 had 1 searches on connection 13572 Can't use an undefined value as an ARRAY reference at hash1.pl line 23 +, <IN> line 8.