Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^6: shedding a bash wrapper and updating to Path::Tiny

by kevbot (Vicar)
on Jul 26, 2018 at 04:23 UTC ( [id://1219294]=note: print w/replies, xml ) Need Help??

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;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1219294]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (5)
As of 2024-04-25 07:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found