Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

A warning about passing mountpoints as arguments to directory recursion programmes

by Don Coyote (Pilgrim)
on Apr 26, 2013 at 14:05 UTC ( #1030835=perlmeditation: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    die 'do not run this code';
    #get arguments;
    my ($filepathlist,$mountpoint)= @ARGV;
    
    die 'usage & defaults' if $filepathlist =~ /^-{0,2}h(elp)?\s*$/;
    
  2. or download this
    die 'do not run this code';
    $filepathlist = 'home/Documents/directorieslist' unless $filepathlist;
    ...
    
    }
    
  3. or download this
    #use default file, but supply mountpoint;
    > perl ./fileunliker.pl /mount/path
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlmeditation [id://1030835]
Approved by Corion
Front-paged by Old_Gray_Bear
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2015-07-04 03:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (57 votes), past polls