Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: No. files in folder

by saskaqueer (Friar)
on Jun 23, 2005 at 10:27 UTC ( #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
Node Status?
node history
Node Type: note [id://469347]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (6)
As of 2021-04-15 06:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?