Re: wildcard File::Copy

2003-12-10 Thread drieux
On Dec 10, 2003, at 2:11 AM, Ben Crane wrote: Drieux, I'm not passing the filehandle, I want to pass a variable that contains the file path...I'm getting the path from a text file, but that text file doesn't contain extensions and each file has multiple extensions. So I need to copy all files wit

Re: wildcard File::Copy

2003-12-09 Thread Jenda Krynicky
From: Ben Crane <[EMAIL PROTECTED]> > Anyone know how to do a wildcard file::copy? E.g. I > want to copy a file with a certain name but different > extensions. > > I have tried concatenating ".*" to the end of a > filename (without an extension obviously) but i

Re: wildcard File::Copy

2003-12-09 Thread John W. Krahn
Ben Crane wrote: > > Hi all, Hello, > Anyone know how to do a wildcard file::copy? E.g. I > want to copy a file with a certain name but different > extensions. > > I have tried concatenating ".*" to the end of a > filename (without an extension obviously) bu

Re: wildcard File::Copy

2003-12-09 Thread drieux
On Dec 9, 2003, at 8:12 AM, Ben Crane wrote: [..] $string2 = "$string[1]".".*"; copy("$string2","$destination") || warn "could not copy files: $!"; It does not appear that $string2 is a FileHandle glob - which I think is your issue here. cf: perldoc -f glob perldoc File::Glob ciao

wildcard File::Copy

2003-12-09 Thread Ben Crane
Hi all, Anyone know how to do a wildcard file::copy? E.g. I want to copy a file with a certain name but different extensions. I have tried concatenating ".*" to the end of a filename (without an extension obviously) but it fails. This is what I had in mind...it's just a scribble