I am writing a script in perl for my project. I have given a snippet of the files below
start.pl contains:
system("/ws/nibalan/submain.pl");
submain.pl contains:
system("/ws/nibalan/submanual.pl")
open(INPUT, ">/users/$login/input");
-
-
some writing into input file
submanual.pl contains:
open(INPUT, "/users/$login/input");
open(MANUALANS, ">/users/$login/manualans.pl");
-
-
some writing into manualans.pl file
While trying to open manualans.pl in write mode it gave the error NO SUCH FILE OR DIRECTORY. It is trying to open an existing file but I want to create a new file and write into it. But in other scripts I am able to open input file in write mode. Weird that I am getting this error. Can you please help me out. Its urgent.