in reply to Scanning multiple files from Snort rules one by one and extracting a particular part to another file - File Handling

First, well done for using strictures. They are going to help a lot in sorting out problems with your code as you develop it.

Your immediate issue is you need to add my in front of each variable when you first assign a value to it.

However, you have a long way to go to get your code complete. I suspect you haven't any chance to complete it within the time you have available. You should talk to your lecturer/tutor about the help you need.

We can give you some hints, but obviously just providing a solution is not going to help in the long run. Here are a few hints that will help write reliable software using Perl:

Update: fixed missing ',' in sample open code - thanks Laurent_R
Premature optimization is the root of all job security
  • Comment on Re: Scanning multiple files from Snort rules one by one and extracting a particular part to another file - File Handling
  • Select or Download Code