Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^4: How to grep for a filename for each of the keys of a hash

by k_manimuthu (Monk)
on Dec 13, 2010 at 06:34 UTC ( #876802=note: print w/replies, xml ) Need Help??


in reply to Re^3: How to grep for a filename for each of the keys of a hash
in thread How to grep for a filename for each of the keys of a hash

my @array = grep (/\Q$file_name\E/i, keys %pathname_versions);

That's the right thing.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://876802]
help
Chatterbox?
[marto]: very cool jedikaiti
[karlgoethebier]: jedikaiti: did i ask already if you own a scope?

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (4)
As of 2017-07-21 15:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (327 votes). Check out past polls.