in reply to Re: changing file extensions (boo)
in thread changing file extensions

There is a rename function in Perl. Who needs a module?

Replies are listed 'Best First'.
Re: Re: Re: changing file extensions (boo)
by arturo (Vicar) on Aug 03, 2001 at 04:06 UTC

    Not that it seems to be an issue in this particular case, but rename may have issues with moving files across filesystems, etc., which is why File::Copy is standard with the distribution.

    And if you wanted a recursive Perl-y solution, you'dn use File::Find.

    pedantically,

    perl -e 'print "How sweet does a rose smell? "; chomp ($n = <STDIN>); +$rose = "smells sweet to degree $n"; *other_name = *rose; print "$oth +er_name\n"'