in reply to Perl prints only one line when directed to a file but print to a screen works

As you overwrite your file for every iteration of your outer loop, you might want to either open it outside the loop or open it for appending (in contrast to the name...).

  • Comment on Re: Perl prints only one line when directed to a file but print to a screen works
  • Download Code

Replies are listed 'Best First'.
Re^2: Perl prints only one line when directed to a file but print to a screen works
by vlad3848 (Acolyte) on Jun 30, 2013 at 17:51 UTC
    That solved it! Thank you very much!