Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Only files starting with xxxx

by TheHobbit (Pilgrim)
on May 11, 2002 at 14:13 UTC ( [id://165879]=note: print w/replies, xml ) Need Help??


in reply to Only files starting with xxxx

Hi,
Simple enough... Use grep.Replace the line

@allfiles = readdir THEDIR;
with
@allfiles = grep /^xxxxx/,readdir THEDIR;
And you're done!

Cheers


Leo TheHobbit

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (7)
As of 2024-03-28 22:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found