Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^2: Copy dir with space

by adriang (Sexton)
on Jul 10, 2014 at 10:40 UTC ( [id://1093022]=note: print w/replies, xml ) Need Help??


in reply to Re: Copy dir with space
in thread Copy dir with space

Thanks for the explain and for the answer. I'm afraid it does not work, I get: " Died at /proj/work.pl line 9. " Something is not working with "catfile"

Replies are listed 'Best First'.
Re^3: Copy dir with space
by Anonymous Monk on Jul 10, 2014 at 14:52 UTC

    not quite. Couple of straight forward syntax errors. Catfile is probably fine, as the program died at an expected line, and, has compiled without complaining about the existence of the function catfile. But the arguments passed to it are amiss. This is probably due to the paths not being stated relatively in the rough draught.

    There was a thirdly, I did not mention previously. Thirdly, Paths and Files are different entities. You are using two directory opens when that is not needed for this copy operation. I think you may need to review the difference between a path and a file. To further complicate this issue, a Directory is a File. Well it is easier to say that both a directory and a file can be recognised as a string (or path). You then need to treat that string correctly depending whether it is a file, or a directory.

    P.S. That is what untested means, 'probably does not work, but you get the gist...'

    hope this helps. DoC

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (4)
As of 2024-04-19 04:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found