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
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
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
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
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