in reply to Re^3: multiple values per key
in thread multiple values per key
With print statement alone(which is commented out), it works as designed(with next two lines commented out)38 foreach $callid (sort keys %data1) { 39 # print " @{$data1{$callid}}\n"; 40 my $fields = join (/\s*/, @{$data1{$callid}}); 41 print "$fields\n"; 42 } 43 close FH;
but when I run as above (with print statement # out with next two open with join), I get below~/script/perl/temp@myserver1 >./program file1 There were 0 which could not detect INVITE 100 180 200 ACK BYE 200 INVITE 100 180 200 180 200 ACK BYE 200
There were 0 which could not detect Use of uninitialized value at ./perl.m2 line 40, <FH> chunk 32. INVITE 1100118012001ACK 1BYE 1200 Use of uninitialized value at ./perl.m2 line 40, <FH> chunk 32. INVITE 110011801200 Use of uninitialized value at ./perl.m2 line 40, <FH> chunk 32. 18012001ACK 1BYE 1200
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: multiple values per key
by GrandFather (Saint) on Jul 24, 2007 at 03:37 UTC | |
by convenientstore (Pilgrim) on Jul 25, 2007 at 02:44 UTC | |
by convenientstore (Pilgrim) on Jul 25, 2007 at 03:27 UTC |