Your code is syntacticlly incorrect. In particular you have an orphaned elseif following foreach my $i (@tableSize). Perhaps you could post some code that is at least syntacticlly correct? I strongly recommend that you place use strict; use warnings; at the start of any script you write and that you clean up any errors and warnings before posting material (unless it is the error or warning that is giving you grief).
Read I know what I mean. Why don't you? for some tips on posting questions of this sort.
In reply to Re: Can an if statement run within a foreach loop?
by GrandFather
in thread Can an if statement run within a foreach loop?
by terms5
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |