CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
No such file or directory error

 



nibalan
Novice

Jun 9, 2011, 5:32 AM

Post #1 of 1 (155 views)
No such file or directory error Can't Post

start.pl contains:

system("/ws/nibalan/submain.pl");

submain.pl contains:

system("/ws/nibalan/submanual.pl")

submanual.pl contains:

open(INPUT, "/users/$login/input");
open(MANUALANS, ">/users/$login/manualans.pl");
-
-
some writing into manualns.pl file



The above code works fine for me. input and manualans.pl file are created in /users/$login directory. Now I thought of creating a directory under /users/$login and create all the above files under it. Modified code:

start.pl contains:

mkdir "/users/$login/$viewtag", 0777 unless -d "$viewtag";
system("/ws/nibalan/submain.pl");

submain.pl contains:

system("/ws/nibalan/submanual.pl")

submanual.pl contains:

open(INPUT, "/users/$login/$viewtag/input");
open(MANUALANS, ">/users/$login/$viewtag/manualans.pl");
-
-
some writing into manualns.pl file


Now te directory got created successfully and input file also got created but manualans file is not getting created. I get the error No such file or directory. I have given the absolute path correctly. Also tried to manually change the permission of directory to 777. Still no use. Can you please help out?

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives