Johann Snyman wrote: > Hello there, > > I am a newby trying to learn pearl. I wrote my first little script, > and I would love to se where I could have done things better (in a > more proffesional way). > > Feedback would be appreciated!
Hi Johann, If this is really tour first script, I would recommend: Starting with something more modest. Avoiding system calls entirely. They are non-portable. Use Perl functions when programming Perl. "Lots of errors" will not help either us or you in developing your perl script. Start with the first error. Read the text of the error message, and find the corresponding line in your script. Look at the line, and the lines just preceding it, to see what could be causing the specific error cited. These error messages are your frioends. They practice "tough love", so to speak. Draw on their wisdom. If you have searched for the cause of the error, and still can not see what is causing it, then post to the group. Cite the full wording of the error message, and include the lines surrounding the line on which the error occured. Mark the line cited by the message. That will help those looking at your code localize the points where errors might be occuring. After you have dealt with the first error, run the code again before trying to deal with any further errors. Many times, the first error in a script will have side effects that induce other errors. Therefore some errors may disappear after you have corrected the first. Other error that were hidden by the effects of the first error may now be revealed. Take them one at a time, and you'll get there. Keep at it. Joseph -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]