Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Re: Finding files in one directory

by frozenwithjoy (Priest)
on Dec 18, 2012 at 07:19 UTC ( #1009296=note: print w/replies, xml ) Need Help??

in reply to Finding files in one directory

LanX's suggestion will work well for what you need. If you ever do anything more complex where you need to find files in a jumble of directories and subdirectories (and do something with them), take a look at File::Find.

Replies are listed 'Best First'.
Re^2: Finding files in one directory
by CountZero (Bishop) on Dec 18, 2012 at 07:32 UTC
    Or File::Find::Rule for a much better interface to File::Find.


    A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

    My blog: Imperial Deltronics

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1009296]
[james28909]: i am manually parsing html, and am trying to wrap my head around keeping up with tag counts
[james28909]: i can extract a certain tree manually by regexing the html file for a starting anchor, then i send the position of the match to a sub and then seek to that position in the file and keep up with div tags (for now)
[james28909]: how can i manage multiple tags? other than div?
[james28909]: i count the div and /div and when count == 0 it means i have got that nested tree

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (9)
As of 2017-04-25 03:55 GMT
Find Nodes?
    Voting Booth?
    I'm a fool:

    Results (448 votes). Check out past polls.