Help for this page

Select Code to Download


  1. or download this
    use File::Copy;
    
    copy("oldfile", "newfile");
    
  2. or download this
    my @files = <some\\path\\here\\*>; 
    #the * means all files in that directory
    #just in case you were confused.
    
  3. or download this
    unlink($filename);
    
  4. or download this
    chdir($path) or die "foo error message\n";
    #now do some foo with $filename in this directory