
gerble1000
User
Oct 22, 2012, 1:46 AM
Post #2 of 3
(1304 views)
|
Re: [lt007] Opening and closing files in loop
[In reply to]
|
Can't Post
|
|
what is the value of $max i am only a beginner but i think the sintax for the loop is this for (my $i=1; $i<$max; $i++) try this for (my $i=0; $i < $max; $i++){ $pwd = &randomPwd($nmbchars); select (DB); print qq("$dept$w$i","7 days","$pwd",,,,,,\n); close(DB); select (newDB); print qq("$dept$w$i"\t>\t"$pwd"\n); close(newDB); }
(This post was edited by gerble1000 on Oct 22, 2012, 1:57 AM)
|