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

Re: No. files in folder

by saskaqueer (Friar)
on Jun 23, 2005 at 10:27 UTC ( [id://469347]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $dir = '/path/to/the/files';
    opendir(my $d, $dir) or die("opendir() failed: $!");
    ...
        grep { -f($_) } readdir($d);
    
    unlink(map { "$dir/$_" } @f[0, 1]) if (@sort_files > 20);
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2024-03-29 04:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found