Closed Thread
Results 1 to 4 of 4

Thread: Move a file in Perl

  1. #1
    Cosmet is offline Learning Programmer
    Join Date
    Oct 2006
    Posts
    58
    Rep Power
    0

    Move a file in Perl

    Can anyone tell me how I can move files or directories with Perl?

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    KevinADC is offline Programmer
    Join Date
    Jan 2007
    Posts
    125
    Rep Power
    0
    use the rename() function or the File::Copy module.

    rename - perldoc.perl.org
    File::Copy - perldoc.perl.org

  4. #3
    Cosmet is offline Learning Programmer
    Join Date
    Oct 2006
    Posts
    58
    Rep Power
    0
    Thanks! I figured it would be named copy or move instead of rename.

  5. #4
    KevinADC is offline Programmer
    Join Date
    Jan 2007
    Posts
    125
    Rep Power
    0

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. move_uploaded_file(images/) [function.move-uploaded-file]: failed to open stream
    By Julien Duponte in forum Database & Database Programming
    Replies: 21
    Last Post: 04-28-2011, 04:09 PM
  2. problem in downloading a file using perl
    By Rinku27 in forum Perl
    Replies: 1
    Last Post: 07-18-2010, 09:23 PM
  3. MOVE FILE
    By psm in forum Managed C++
    Replies: 0
    Last Post: 04-04-2010, 01:28 PM
  4. File.Move throws exception
    By Dumpen in forum C# Programming
    Replies: 2
    Last Post: 03-13-2010, 08:09 PM
  5. Move a file?
    By Crane in forum PHP Development
    Replies: 1
    Last Post: 03-03-2007, 04:57 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts