Beefy Boxes and Bandwidth Generously Provided by pair Networks Joe
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Listing files

by BeernuT (Pilgrim)
on Feb 12, 2002 at 11:31 UTC ( [id://144897]=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 Listing files

Let me just give you a quick answer to help you on your way. your use of
((-M) > 01/01/02 && (-M) < 01/31/02 ))
is wrong in 2 ways. If I understand your question correctly then -M is not what you want. -M returns the Age of file in days when script started. A small example might be..
$var = -M "filename.txt";

also your comparing a number to a string with the use of > and <.
You probably want to look at perldoc -f stat to work on your problem. If your still having trouble with stat msg me and i'll give you a few hints

-bn

Replies are listed 'Best First'.
Re: Re: Listing files
by oaklander (Acolyte) on Feb 12, 2002 at 14:30 UTC
    I looked at perldoc -f stat and still cant seem to get this to work. Please advise if possible.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://144897]
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.