the specific errors are:system "rm file2"; open(FILE2, ">file2"); open(MYINPUTFILE, "file"); if ( -s file ){ while(<MYINPUTFILE>) { my($line) = $_; chomp($line); print FILE2 "$line\n"; print FILE2 "you need to do this\n"; print FILE " \n"; } else { print FILE2 "There is nothing to do\n"; } }
In reply to if/while/else problem by ddrew78
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |