Help for this page

Select Code to Download


  1. or download this
    my $folder = path( $current, $to, $ts, $base_dir )->mkpath;
    
  2. or download this
    my $folder_path = path( $current, $to, $ts, $base_dir );
    $folder_path->mkpath;
    # This will print the path regardless if the path already existed or n
    +ot
    print "My folder path is $folder_path\n";
    
  3. or download this
    my $mkpath_return_value = $folder_path->mkpath;
    
    # The value of $mkpath_return_value will be equal to the number of dir
    +s created (since the return value will be a list that is forced into
    # scalar context), or it will be equal to zero if the path already exi
    +sted.
    
  4. or download this
    my @dirs = $folder_path->mkpath;