Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Searching a file and then opening it

by smokemachine (Hermit)
on Nov 07, 2006 at 17:09 UTC ( [id://582695]=note: print w/replies, xml ) Need Help??


in reply to Searching a file and then opening it

perl -e '$name = shift || die "name?!"; $dir = shift || "."; $time = s +hift || 1; while(<$dir/* >){open FILE, $_ if scalar localtime((stat)[10]) < $time && /$name/}' +test . 123

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2024-04-23 23:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found