I am reading a portion of a file into an array. Then I print out portions of the line to my webpage. I need to be able to do a search and replace on each line as I print so that it prints what I want. Such as
open(nabl_standr, $nabl_stand_file) || die("Could not open file!");
for ($x=18; $x<25; $x++)
print (substr($array_nabl[$x], 0, index($array_nabl[$x], "<td class=s3")));
The above does not seem to work for me. I think you should be able to see what I am trying to do. It works fine if I don't do the search replace. Could someone please show me hoe to do this correctly. Thanks.