in reply to Cleaning up by age

To the cause of your specific problem, the line:

while (readdir (DIR)) {

does not magically assign to $_, so for a quick fix you could change it to

while ($_ = readdir (DIR)) {

You'll be much closer to what you want.

I guess you never saw any of your debug messages that indicated that no files were ever tested in your loop. ;-)

--
I'd like to be able to assign to an luser

Replies are listed 'Best First'.
Re: Re: Cleaning up by age
by brianarn (Chaplain) on Nov 13, 2001 at 01:24 UTC
    Y'know, now that I think about it, you're right - I should have snapped. Arg. heh. Thanks. :)

    Now let's see if I can get this all cleaned up. :)