CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Intermediate: Re: [BillKSmith] Nested While Loops, foreach and next: Edit Log



_Chipwiz_Ben_
Novice

Jun 3, 2011, 3:47 AM


Views: 1760
Re: [BillKSmith] Nested While Loops, foreach and next

Hi all,

Thank you to all that offered assistance. I did eventually find the problem and fix it - I am quite embarrassed to admit what it was but I feel obliged to for thread completeness.

An extract from sub conflict_check:


Code
if (($FREQUENCY eq '28') && ($SITE_A_ANTENNA_LENGTH eq '1')) { 
return 1;
}
if (($FREQUENCY eq '28') && ($SITE_B_ANTENNA_LENGTH eq '1')) {
return 1;
}
if (($FREQUENCY eq '38') && ($SITE_A_ANTENNA_LENGTH eq '1')) {
return 1;
}
if (($FREQUENCY eq '38') && ($SITE_B_ANTENNA_LENGTH eq '1')) {
return 1;
}


Rows returned by MySQL for Antenna Lengths:
0.3, 0.6, 0.8, 1.0 and 1.2

That'll teach me for using eq instead of = Blush

Cheers,
Ben


(This post was edited by _Chipwiz_Ben_ on Jun 3, 2011, 3:49 AM)


Edit Log:
Post edited by _Chipwiz_Ben_ (Novice) on Jun 3, 2011, 3:49 AM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives