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

Re: Re: Re: Re: Works locally but not on Info Server

by Arien (Pilgrim)
on Jan 18, 2003 at 05:33 UTC ( [id://227929]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Re: Works locally but not on Info Server
in thread Works locally but not on Info Server

my @files = grep { !/^\.+$/ && -M $_ > 1; } map { $mydir."/".$_; } readdir(DIR);

There is no point in doing that regex (corrected to your version above) after map, it will always fail. Also, you may want to skip all dot-files, since they are supposed to be hidden.

my @files = grep { not /^\./ and -M "$mydir/$_" > 1 } readdir(DIR);

— Arien

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (6)
As of 2024-04-23 15:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found