Beefy Boxes and Bandwidth Generously Provided by pair Networks Joe
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Beginner question regarding file lists/output

by ickyb0d (Monk)
on Dec 05, 2005 at 16:46 UTC ( [id://514252]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to Beginner question regarding file lists/output

If all the files are in your current directory this should work. Are there any recursive directories that need to be searched? If you need to search a specific directory, just change the "." to whatever directory you want. Hope this helps.
#opening dir n' grabbing files opendir(DIR, "."); my @files = grep(/^.+?index\.ccr$/,readdir(DIR)); closedir(DIR); #opening file for writing and outputting to indexlist.ccr open(FILE, ">indexlist.ccr") foreach(@files) { print FILE $_ . "\n"; } close(FILE);

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://514252]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.