There's more than one way to do things | |
PerlMonks |
Re: Scanning multiple files from Snort rules one by one and extracting a particular part to another file - File Handlingby GrandFather (Saint) |
on Jul 22, 2015 at 07:05 UTC ( [id://1135810]=note: print w/replies, xml ) | Need Help?? |
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:
Premature optimization is the root of all job security
In Section
Seekers of Perl Wisdom
|
|