Dec 27, 2012, 6:08 AM
Post #2 of 3
You did not say what did not work. One mistake I do see is that you are working on the third line, not the second (array indices start at zero).
Re: [jeffle] little script that doesn't work
[In reply to]
Always use strict and warnings. If your file only has two lines this would have found the error. (I suspect that this is true because you should have recognized the first five characters of the third line)
Always check the status of open. If your script, as is, is unable to open the text file, you will not get any output.
Edit: Please reference your post on perlmonks.
(This post was edited by BillKSmith on Dec 27, 2012, 6:43 AM)