open(INFO, <"/export/home/cad/data/products/$name/source/$name.bom">)
with
open(INFO, "/export/home/cad/data/products/$name/source/$name.bom")
This should work if you want to just read from INFO.
You are still not actually doing anything with the contents of the file. Try using:
@lines = <INFO>;
close (INFO);
this will read all of the file into the lines array and then close the file (which is always good practice)
Also, in your open or die code you may want to use $! as that will contain the relevent error message.
Incidently try to wrap any code you post in the code tags, see Site How To, because it make it much easier to read.
|