Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with FIle::Path

Status
Not open for further replies.

MoshiachNow

IS-IT--Management
Feb 6, 2002
1,851
IL
HI,

The following code fails creating the directory "POD" and gives no errors.
Any ideas why ? thanks

Code:

chdir ("d://");
system ("cd");
my @created = mkpath(qw(/tmp/POD),{verbose => 1, mode => 0777});
print STDOUT "created $_\n" for @created;

program prompt:
d:\
mkdir /tmp
mkdir /tmp/POD
created /tmp
created /tmp/POD

/tmp is created,but not "POD" inside ...

Long live king Moshiach !
 
on every line add a statement that says
or die "Tried to do blah :$!\n";
to the end of your statements to see where it is failing at.


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[noevil]
Travis - Those who say it cannot be done are usually interrupted by someone else doing it; Give the wrong symptoms, get the wrong solutions;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top