467,882 Members | 1,188 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,882 developers. It's quick & easy.

problem with for loop

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
  • viewed: 1249
Share:
4 Replies
nithinpes
Expert 256MB
Post your code so that someone can see what's wrong in it.
Nov 5 '08 #2
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 2GB
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 2GB
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.

Similar topics

reply views Thread by Charles Alexander | last post: by
2 posts views Thread by Xiaozhu | last post: by
5 posts views Thread by Carmine Cairo | last post: by
8 posts views Thread by Jeff | last post: by
47 posts views Thread by fb | last post: by
8 posts views Thread by koorb | last post: by
11 posts views Thread by felixnielsen | last post: by
1 post views Thread by Promextheus Xex | last post: by
5 posts views Thread by =?Utf-8?B?Z215ZXJz?= | last post: by
reply views Thread by MrMoon | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.