in reply to RE: Odd file rename
in thread Odd file rename
I really can't see your problem with that. Try:
/brother t0mas
(credits for regexp to lhoward)my @fileList=("F1234","F2345","F3456"); foreach $oldname (@fileList) { $newname=$oldname; $newname=~ s/^./B/i; rename($oldname,$newname) };
/brother t0mas
In Section
Seekers of Perl Wisdom