use this:
you could use system commands if you are on winnt or w2k.
I normally just use
@filelist = `dir *.ext /b`;
foreach (@filelist){
@filename=split on the .
if last element of @filename is what you're looking for{
`rename $_ @filename[0].newext`
}
}
on Tue, 25 Jun 2002 19:51:14 GMT, JoãO Paulo wrote:
>
> How can I quickly change the extension of a lot of files???
>
> something like "file" into "file.something" ,JP.
perldoc -f rename
perldoc -f opendir
perldoc -f readdir
--
felix
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
F
How can I quickly change the extension of a lot of files???
something like "file" into "file.something" ,JP.
_
Send and receive Hotmail on your mobile device: http://mobile.msn.com
--
To unsubscribe, e-mail: [EMAIL
On Fri, 8 Feb 2002 06:48:56 -0800, Troy May <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I posted a question about this a couple days ago and only got 2
> responses, but neither of them worked for him. So I figured I'd start
> new since he told me the EXACT format he would like the files to be
> in. M
Hello,
I posted a question about this a couple days ago and only got 2 responses,
but neither of them worked for him. So I figured I'd start new since he
told me the EXACT format he would like the files to be in. My friend wants
to rename a dat file as he calls it. (message.dat?) He would lik
Hello all,
My friend (who doesn't English too well yet) has been emailing me asking
about a guestbook he made. It sounds like he wants to archive his message
files with a certain format and back them up automatically everyday. Here's
his last email to me:
"i want to store all those message eve