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 Re: if/while/else problem
by eff_i_g
in thread if/while/else problem
by ddrew78
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |