Please help me w/ my sub

2008-10-14 Thread Richard Lee
below sub works fine except the line where key is default. Instead of printing out PCMU only once, it's printing it out 40 times randomly.. Trying to figure out what I did wrong. Please leave me a feedback. thank you. 156 time(s) Codec(s) : unassigned_38 185 time(s) Codec(s) : G729

Re: Please help me w/ my sub

2008-10-14 Thread John W. Krahn
Richard Lee wrote: below sub works fine except the line where key is default. Instead of printing out PCMU only once, it's printing it out 40 times randomly.. Trying to figure out what I did wrong. Please leave me a feedback. thank you. 156 time(s) Codec(s) : unassigned_38 185 time(s)

Re: Please help me w/ my sub

2008-10-14 Thread Richard Lee
John, I think this is now fixed. Still looking to make sure its covering all basis.. sub codec_list { #my @codec_d = qw/0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 # 28 29 30 31 32 33 34 35--71 72--76 77--95 96--127/; my @codec_d =

Re: Please help me w/ my sub

2008-10-14 Thread Chas. Owens
On Tue, Oct 14, 2008 at 02:15, Richard Lee [EMAIL PROTECTED] wrote: below sub works fine except the line where key is default. Instead of printing out PCMU only once, it's printing it out 40 times randomly.. Trying to figure out what I did wrong. snip I found your code to be very odd. You do

Re: Please help me w/ my sub

2008-10-14 Thread Richard Lee
Chas. Owens wrote: On Tue, Oct 14, 2008 at 02:15, Richard Lee [EMAIL PROTECTED] wrote: below sub works fine except the line where key is default. Instead of printing out PCMU only once, it's printing it out 40 times randomly.. Trying to figure out what I did wrong. snip I found your

Re: Please help me w/ my sub

2008-10-14 Thread Richard Lee
Chas. Owens wrote: On Tue, Oct 14, 2008 at 02:15, Richard Lee [EMAIL PROTECTED] wrote: below sub works fine except the line where key is default. Instead of printing out PCMU only once, it's printing it out 40 times randomly.. Trying to figure out what I did wrong. snip I found your

Re: Please help me w/ my sub

2008-10-14 Thread Richard Lee
John W. Krahn wrote: Richard Lee wrote: below sub works fine except the line where key is default. Instead of printing out PCMU only once, it's printing it out 40 times randomly.. Trying to figure out what I did wrong. Please leave me a feedback. thank you. 156 time(s) Codec(s) :

Help on -w

2002-11-05 Thread LRMK
#!/usr/bin/perl -w my $a; if ($a eq 'fff'){ } above line gives the error Use of uninitialized value in string eq at t.pl line 6. but when -w not used in top line it works perfect what the -w really does

RE: Help on -w

2002-11-05 Thread Mark Anderson
, solution is do initialize $a with a value when you declare it with the my statement. /\/\ark -Original Message- From: LRMK [mailto:lrmk;rakhitha.cjb.net] Sent: Tuesday, November 05, 2002 9:51 AM To: [EMAIL PROTECTED] Subject: Help on -w #!/usr/bin/perl -w

Re: Help on -w

2002-11-05 Thread Robert Citek
Hello LRMK, At 11:51 PM 11/5/2002 +0600, LRMK wrote: #!/usr/bin/perl -w my $a; if ($a eq 'fff'){ } above line gives the error Use of uninitialized value in string eq at t.pl line 6. but when -w not used in top line it works perfect what the -w really does You've created $a but not set it to