Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
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.


Comment on Re^4: How to grep for a filename for each of the keys of a hash
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (12)
As of 2015-07-30 18:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (273 votes), past polls