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
In reply to Re^4: multiple values per key
by convenientstore
in thread multiple values per key
by convenientstore
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |