Cool File & Directory Modules File::Copy 30 of 69 : prev | index | next

File::Copy

move()

  use File::Copy;
  move("/dev1/fileA","/dev2/fileB");

If possible, move() will simply rename the file. Otherwise, it copies the file to the new location and deletes the original.

Either argument may be

  • a string only

© 2003 Barbie - barbie@missbarbell.co.uk contents http://birmingham.pm.org/