using nested foreach loops

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
Hi all I have run into a debug problem and could use help. My goal is to
have nested foreach loops where the internal one opens a file find a
variable and changes the value and the the top foreach loop then does some
work i.e.

foreach xx ( 2.25 2.5 2.75)
              foreach crnr ( TT SS FF)
                fopen model
               set crnr1=crnr
then take model and do analysis

The sticky part is the opening the file to set the variable and keep it
there and then use the file for other operations

Re: using nested foreach loops

Kirk Russell wrote:
> foreach xx ( 2.25 2.5 2.75)
>               foreach crnr ( TT SS FF)
>                 fopen model
>                set crnr1=crnr
>                fclose
>                end
> then take model and do analysis
> end

This is not Perl.  You have your algorithm already, but now you need to
learn Perl.  Try

Site Timeline