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`
}
}
then you're done
hope this helps
Eric
On 25 Jun 2002, Felix Geerinckx wrote:
> 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]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]