Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: copy directories

by arturo (Vicar)
on Mar 17, 2001 at 00:01 UTC ( [id://65005]=note: print w/replies, xml ) Need Help??


in reply to copy directories

mkpath returns a list of the directories it's created. So check the return value of that call, that should help you debug.

my @newdirs = mkpath (blah blah blah) or die "mkpath failed: $!\n"; # you can now do something with @newdirs should you need to, such as p +rint it out

HTH

Philosophy can be made out of anything. Or less -- Jerry A. Fodor

Replies are listed 'Best First'.
Re: Re: copy directories
by thealienz1 (Pilgrim) on Mar 17, 2001 at 00:04 UTC

    For the darnest reason that doesn't work... I am using $ARGV could that have anything to do with it?

    "The pajamas do not like to eat large carnivore toasters."
    In German: "Die Pyjamas mögen nicht große Tiertoaster essen.
    In Spanish: "Los pijamas no tienen gusto de comer las tostadoras grandes del carnívoro."

      Please, "doesn't work" how? The call goes through without dying? Did you print out @newdirs ?

      You need to be more verbose in your descriptions.

      (and I don't think the use of @ARGV has anything to do with it, fwiw)

      Philosophy can be made out of anything. Or less -- Jerry A. Fodor

        What I am saying when it doesn't work is that it doens't work... i am saying your suggestions caused the program to run the same way its running... you guys are too verbose.

        adding a die statement makes it reture "Died at sendfile.pl line 28"...
        printing @newdirs returns NOTHING...

        "The pajamas do not like to eat large carnivore toasters."
        In German: "Die Pyjamas mögen nicht große Tiertoaster essen.
        In Spanish: "Los pijamas no tienen gusto de comer las tostadoras grandes del carnívoro."

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (6)
As of 2024-04-24 03:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found