*Please* remove that header and post inline properly.

The file format is OhioHealthyyymmdd[0-9].xml
The [0-9] is a 6 digit PID I assume but changes every time the file is
created.
So the filename for example looks like OhioHealth20040124989893.xml

thank you!

#!/usr/bin/perl
use strict;
use warnings;

Good good ;p


               $ftp->rename("$$fref\[0-9].xml", "OhioHealth.xml")

a) this is not a regex so [0-9] does no good unless the FTP server understands it as a regex, in which case it will need to be a regex for the FTP server not necessarily a Perl regex

b) Its being interpolated in the double quotes

So you're basically asking for a file that literally has a [0-9] in its name (pronounced "bracket zero dash nine bracket" not "zero through nine")

Perhaps Net::FTP::File's directory hash will help you sort out the names easier...

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to