| | Re: perl file copy question Ross Crawford
|
| | (...) Try File::NCopy (although I dont think it's a standard module) - (URL) however that you can easily obtain directory and filename from the path string - you don't need the file handle (I'm pretty sure File::Basename is standard): use (...) (19 years ago, 5-Oct-05, to lugnet.off-topic.geek)
|
| | |
| | | | Re: perl file copy question Larry Pieniazek
|
| | | | (...) that does help! (meanwhile I got a version working that uses system(), just as a stopgap...) However I really don't want to use system() (or any process spawning things) and since I want to wildcard aren't I going to have to use glob() to get (...) (19 years ago, 5-Oct-05, to lugnet.off-topic.geek)
|
| | | | |
| | | | | | Re: perl file copy question Timothy Gould
|
| | | | | (...) Does this code help? It shows the outputs. Decided to have a fiddle with what Ross posted to see what everything did. Tim use File::Glob ':glob'; use File::Basename; $ddn="destination directory"; @t=(<g:/docs/in_prog...bes/*.*>); foreach $f (...) (19 years ago, 5-Oct-05, to lugnet.off-topic.geek)
|
| | | | | |
| | | | | | Re: perl file copy question Ross Crawford
|
| | | | (...) Yes, it returns a list of filename strings, including any relative path. ROSCO (19 years ago, 5-Oct-05, to lugnet.off-topic.geek)
|
| | | | |