Should probably be FILE2. I am making an assumption though because we don't have all of the code and you could possibly have FILE defined further up.while(<MYINPUTFILE>) { my($line) = $_; chomp($line); print FILE2 "$line\n"; print FILE2 "you need to do this\n"; print FILE " \n"; <------ *HERE* } else {
In reply to Re: if/while/else problem
by RoyCrowder
in thread if/while/else problem
by ddrew78
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |