Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Perl script to find particular string and save those lines in another file?

by aaron_baugher (Curate)
on May 05, 2015 at 05:39 UTC ( [id://1125671]=note: print w/replies, xml ) Need Help??


in reply to Perl script to find particular string and save those lines in another file?

You need to open the output file before you write to it. Move the "open (NEW" line up above the loop that prints to it.

Aaron B.
Available for small or large Perl jobs and *nix system administration; see my home node.

  • Comment on Re: Perl script to find particular string and save those lines in another file?
  • Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1125671]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (3)
As of 2024-07-21 20:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.