Use of uninitialized value at ./perl.m line 32, chunk 1. Use of uninitialized value at ./perl.m line 32, chunk 1. Use of uninitialized value at ./perl.m line 32, chunk 894. Use of uninitialized value at ./perl.m line 32, chunk 896. Use of uninitialized value at ./perl.m line 32, chunk 898. #### #!/usr/bin/perl -w use strict; my $ncb = $/; my $cbn = $"; $/ = "\n\n"; $" = "\n"; open FH, 'file1' or die "can't open file $!"; my $callid; my $sipm; my %data1 = (); while () { chomp; if (m/^###|^\s*$/s) { next ; } m{(^SIP\/2\.0 \d\d\d|^[A-Z]{3,6} ).*(Call-ID: [\S]{25,80})[^ ]+: .*}s; ($sipm,$callid) = ($1,$2); #print "\$sipm is $sipm and \$callid is $callid\n"; push (@{$data1{$callid}}, $sipm); } $/ = $ncb; $" = $cbn; foreach $callid (sort keys %data1) { print "$callid \n", " @{$data1{$callid}}\n"; } close FH; #### 14 $ 15 ### sendto xxx.xxx.xxx.xxx7:5060 679 bytes @ Wed Feb 7 14:22:22 2007$ 16 $ 17 SIP/2.0 200 OK^M$ 18 Via: SIP/2.0/UDP xxx.xxx.xxx.xxx7:5060;branch=xxxxxxxxxxxxxxxxxxxxxxx;received=xxx.xxx.xxx.xxx7^M$ 19 From: sip:1223456679@xxx.xxx.xxx.xxx7;tag=xxxxxxxxx--1168518504^M$ 20 To: sip:18000003333@xxx.xxx.xxx.xxx;tag=ccid-306500088-1-2020^M$ 21 Allow: ACK,BYE,CANCEL,INVITE,OPTIONS^M$ 22 Call-ID: Something--662631336@xxx.xxx.xxx.xxx7^M$ 23 CSeq: 1 INVITE^M$ 24 Contact: ^M$ 25 26 Content-Length: 201^M$ 27 Content-Type: application/sdp^M$ 28 ^M$ 29 v=0^M$ 30 o=50053 306500088 306500088 IN IP4 xx.xx.xx.xx^M$ 31 s=SIP Call^M$ 32 c=IN IP4 xx.xx.xx.xx^M$ 33 t=0 0^M$ 34 m=audio 53776 RTP/AVP 0 11^M$ 35 a=rtpmap:0 PCMU/8000^M$ 36 a=rtpmap:101 telephone-event/8000^M$ 37 a=fmtp:101 0-11^M$ 38 $