Keep It Simple, Stupid | |
PerlMonks |
Re: Perl script to find particular string and save those lines in another file?by graff (Chancellor) |
on May 05, 2015 at 05:24 UTC ( [id://1125668]=note: print w/replies, xml ) | Need Help?? |
You seem to be opening the "NEW" file handle after you've been trying to write to it. Trying opening "NEW" before the "for" loop.
(Also, it's better to do it like this: (updated to "use strict" and add "my" for the one variable)
In Section
Seekers of Perl Wisdom
|
|