Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: parsing directory glob in config file

by mothra (Hermit)
on Sep 13, 2002 at 21:17 UTC ( [id://197738]=note: print w/replies, xml ) Need Help??


in reply to parsing directory glob in config file

perldoc -f glob for starters.

It'll just do what you think it should.

e.g.

globfoo ======= #!/usr/bin/perl -w my @files = glob("foo*/ba*/"); print join "\n", @files, "\n"; mothra@penderel:~/src/Perl$ ls -d foo*/ba*/ foo1/bar1/ foo1/bar2/ foo1/bar3/ foo2/baz2/ foo2/baz3/ mothra@penderel:~/src/Perl$ ./globfoo foo1/bar1/ foo1/bar2/ foo1/bar3/ foo2/baz2/ foo2/baz3/

etc.

It's probably a bad idea to roll your own logfile implementation (i.e. you could be learning lots of *other* things besides trying to make a wheel more round), but alas, to each their own.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (7)
As of 2024-04-23 14:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found