http://qs321.pair.com?node_id=941245


in reply to Re: Problem in creating Directory
in thread problem in mkdir

Thanks for the reply dave, yes ur ryt i havent done proper deligence, becoz am new to perl , and my perl knowledge is not upto the mark , when i changed accordingly its giving following error Failed to createeate directory /var/www/html/piRNA_html/UNAFold/output//: File exists at /var/www/html/piRNA_html/UNAFold/mkdirtest.cgi line 39.

Replies are listed 'Best First'.
Re^3: Problem in creating Directory
by davido (Cardinal) on Dec 02, 2011 at 06:50 UTC

    Now go to your linux prompt and type the following:

    mkdir mytest mkdir mytest

    You'll get the following error message:

    mkdir: cannot create directory mytest: File exists

    You can go ahead and rmdir that mytest directory now, and then ask yourself why you're trying to create a directory that already exists.


    Dave

    A reply falls below the community's threshold of quality. You may see it by logging in.
Re^3: Problem in creating Directory
by lune (Pilgrim) on Dec 02, 2011 at 09:01 UTC

    The error message just tells You that the directory $somepath/output exists. Your variables $temp1, $temp2 seem to have been empty (see the trailing slashes in the error message).

    Besides the push statement in line 27 declares a second array @folder_names.

    You should really uncomment the "use strict" like already said. This will help You find and correct errors like this one.