andrew has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re: Rename a directory!!
by rir (Vicar) on Oct 06, 2002 at 17:32 UTC
    Just use rename "oldname", "newname";
    This will not work if you are moving the directory
    to a different filesystem. In which case you need to
    copy and delete every thing.

      Use the standard File::Copy module's move command to move/rename files or directories across filesystem boundries.

      BazB

Re: Rename a directory!!
by fruiture (Curate) on Oct 06, 2002 at 17:34 UTC

    Use rename, where's the problem? The fact that there are subdirectories doesn't matter.

    --
    http://fruiture.de
Re: Rename a directory!!
by Anonymous Monk on Oct 07, 2002 at 06:45 UTC
    Please go read How to RTFM. It will guide you to the many vast perl resources available at your fingertips, especially since lots of your questions have been FAQ lately