Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://941245]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (4)
As of 2022-06-26 20:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My most frequent journeys are powered by:









    Results (86 votes). Check out past polls.

    Notices?