in reply to How to control the loop
And there's also a problem with the second half of that statement:next until ($seed=~/[ACGTN-]/ && (!($seed =~ /\$seed/))) { # should be: next unless ($seed=~/[ACGTN-]/ && (!($seed =~ /\$seed/)));
That's always going to evaluate as true - assuming $seed is never '$seed' - ie you're looking to match a literal by escaping the $. And if you meant to interpolate it, it will always be false because $seed always matches $seed ??(!($seed =~ /\$seed/)));
Please clarify. Also:
Delete this - your initial for loop covers the condition.$i=$i+1; }until($i>682);#Line 29
If you clarify what you are trying to do and supply some sample data input and expected output, that would help.
cLive ;-)
--
seek(JOB,$$LA,0);
|
|---|