Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
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 perusing the Monastery: (7)
As of 2015-05-25 11:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    In my home, the TV remote control is ...









    Results (480 votes), past polls