|
Posted by Tad J McClellan on March 6, 2008, 8:11 pm
Please log in for more thread options
>> On Tue, 04 Mar 2008 12:10:16 GMT, Tad J McClellan
>>
>>> foreach my $file ( glob 'E:/personalinjury/*.htm' ) { # untested
>>> rename $file, "$newfile.htm" or die "could not mv '$file' $!";
>> THere are however some problems
>> with the code you posted above here. For one, the rename() function
>> takes string values as arguments, not file handles.
>
>
> Right.
Oh. I think I see what happened there.
A filename glob (perldoc -f glob) is not the same as a "typeglob"
("Typeglobs and Filehandles" section in perldoc perldata).
--
Tad McClellan
email: perl -le "print scalar reverse qq/moc.noitatibaher0cmdat/"
|