Help for this page

Select Code to Download


  1. or download this
    use Path::Class;
    my @dirs = qw/path to my directory/;
    my $path  = my $dir = Path::Class::Dir->new(@dirs);
    $path->mkpath; #creates the directories as necessary
    
  2. or download this
    use File::Copy;
    move('file_to_move', $path);