Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^5: Using grep and glob to find directories containing file

by 7stud (Deacon)
on Feb 03, 2013 at 18:03 UTC ( #1016846=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    foreach (1,2,3,4) {
    print "dir1\n" if glob("dir1/f*");
    print "dir2\n" if glob("dir2/f*");
    }
    
  2. or download this
    
    use strict;
    ...
    8:     dir1/f2
    9: 
    10:     dir1/f1
    
  3. or download this
    use strict;
    use warnings;
    ...
    dir1/f1
    dir1/f1
    dir1/f1
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (11)
As of 2014-12-19 13:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (83 votes), past polls