in reply to if/while/else problem
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"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: if/while/else problem
by ddrew78 (Beadle) on Mar 25, 2009 at 18:57 UTC | |
by eff_i_g (Curate) on Mar 25, 2009 at 19:13 UTC |