Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Traversing directories recursively

by johngg (Canon)
on Nov 20, 2007 at 10:33 UTC ( #651897=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    next if ( "$dir_name/$file" =~ /\/\.$/ or "$dir_name/$file" =~ /\/\.\.
    +$/ );
    
  2. or download this
    next if "$dir_name/$file" =~ m{/\.\.?$};
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (3)
As of 2019-07-20 04:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?