Beefy Boxes and Bandwidth Generously Provided by pair Networks RobOMonk
We don't bite newbies here... much
 
PerlMonks  

Re: greping for names

by snafu (Chaplain)
on Jul 19, 2002 at 11:33 UTC ( [id://183272]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to greping for names

I believe this is a job for superman...glob().
my @cfiles = glob('*.c'); print join("\n",@cfiles),"\n";
And here it is in action:

$ ls test_ test_data_rw.C test_exitcode test_exitcode.c test_rw_bindata +.c $ perl -e ' >my @cfiles = glob("*.c"); # used "'s for CLI input. >print join("\n",@cfiles),"\n"; >' test_exitcode.c test_rw_bindata.c

_ _ _ _ _ _ _ _ _ _
- Jim
Insert clever comment here...

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://183272]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.