Let me see if I understand this correctly. You have two arrays, let's say @array1 and @array2. Each contains a list of file prefixes, and you're creating HTML files that are called ${prefix1}LAY.html, with $prefix1 ranging over all elements of @array1, and (similarly) ${prefix2}DFT.html, with $prefix2 ranging over all elements of @array2.
Furthermore, while the elements of @array1 and @array2 come from the same pool of potential values, any given such value might or might not appear in either array: @array1 might have elements that are not in @array2, and @array2 might have elements that are not in @array1. So in those cases, there'll only be a ${prefix}LAY.html or a ${prefix}DFT.html file, not both, and (naturally) you don't want to the one that exists to link to the one that does not.
Is that right?
If so, without seeing more of your code, I'd say you should simply pass the information on whether a given prefix appears in either array to your createButtons sub.
In reply to Re: Problem with creating Files
by AppleFritter
in thread Problem with creating Files
by David92
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |