I thought i could use the returncode "0"I don't see you using any return code (other than the one returned by open. But what puzzles me more is that you didn't get Use of uninitialized value $_ in print. AFIK, in your particular program, $_ isn't implicitly set anywhere.
In reply to Re: Write a file if grep finds a pattern?
by rovf
in thread Write a file if grep finds a pattern?
by matze77
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |