By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,710 Members | 1,887 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,710 IT Pros & Developers. It's quick & easy.

problem with for loop

P: 5
Hi everybody


In my codes i am using two for loop (nested one) . i am taking values through param in that file but the loop is not creating problem for ten cyle but from 11 its giving problem its spliting 11 as double 1 and giving the result for file 1 ... how to clear this ...


thank you in advance....
Nov 5 '08 #1
Share this Question
Share on Google+
4 Replies


nithinpes
Expert 100+
P: 410
Post your code so that someone can see what's wrong in it.
Nov 5 '08 #2

P: 5
Post your code so that someone can see what's wrong in it.
Expand|Select|Wrap|Line Numbers
  1. for($i=1;$i<=$no;$i++)
  2. {
  3.   for($j=0;$j<=15;$j++)
  4.     {
  5.        my @lprobes;
  6.        my %sl;
  7.  
  8.        my $geneid = $gene[$i][$j];
  9.        if($geneid eq "") { next };
  10.        and Display things 
  11.      }
  12. }
  13.  
same like only the param loop also but there is no problem in param loop....
Nov 5 '08 #3

numberwhun
Expert Mod 2.5K+
P: 3,503
aarusiva,

You now have a couple of threads under your belt and both times we have been kind enough to fix your code tags. Code tags are needed to surround any code that you place into any post into the forums. Please use them from now on. If you do not know how to use them, simply reference the "REPLY GUIDELINES" box next to the Message box when replying.

This is your friendly warning.

Regards,

Jeff
Perl Forum Leader
Nov 5 '08 #4

KevinADC
Expert 2.5K+
P: 4,059
I can't understand what you said in your first post, I assume because English is not your first language, but in the code you posted I see this:

Expand|Select|Wrap|Line Numbers
  1. for($i=1;$i<=$no;$i++)
$i starts with 1 instead of 0 (zero) which might be part of your problem if not the whole problem.
Nov 5 '08 #5

Post your reply

Sign in to post your reply or Sign up for a free account.