Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Re^2: Problem in creating Directory

by MVRS (Acolyte)
on Dec 02, 2011 at 06:37 UTC ( #941245=note: print w/replies, xml ) Need Help??

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 (Archbishop) 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.


      no dav , actually no dir is been created , but i couldnt understand y its giving that sort of error , u can try the same script in ur desk , please let me know whether its creating dir r not
Re^3: Problem in creating Directory
by lune (Monk) 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.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://941245]
and the radiator hisses contentedly...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (6)
As of 2018-06-23 08:38 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (125 votes). Check out past polls.