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

Re: What's wrong with this grep?

by graff (Chancellor)
on Nov 07, 2009 at 07:39 UTC ( #805623=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use File::Slurp;
    
    ...
    
    my @files = grep { -f and /^\d{8}\.\d{6}\.host\d\.\d{1,6}$/ } read_dir
    + ".";
    print "Got ". scalar(@files) . "\n";
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2023-01-28 10:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?