in reply to Program can not read the contents of a small file that it has recently written!

I didn't step through the logic of the whole program but this looks rather suspect:
my @PromoterLenghts = (4); my $PromotroListLength = $#PromoterLenghts;
It looks like you want to set the first array to have four empty elements. What you are actually doing is setting the array to have its first element equal "4".

$PM = "Perl Monk's";
$MCF = "Most Clueless Friar Abbot";
$nysus = $PM . $MCF;

  • Comment on Re: Program can not read the contents of a small file that it has recently written!
  • Download Code

Replies are listed 'Best First'.
Re: Re: Program can not read the contents of a small file that it has recently written!
by lostcause (Monk) on Jun 26, 2001 at 03:16 UTC
    I really do want an array of one value, a 4 in this case. My original line was my @PromoterLenghts = ($PromoterMinLength .. $PromoterMaxLength); the min and max values were user entered.
    Its most likely that I have made some kind of stupid mistake/typo in the code but I can't see what it is.
    Try setting the @PromoterLenghts array to (2,3) and see what happens. Oh and delete any old permute.txt or output files that were generated on previous runs first.