Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

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

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

Help for this page

Select Code to Download


  1. or download this
    grep (/$filename/i, $key) foreach my $key (keys %path_versions)
    
  2. or download this
    @array = grep (/$filename/, keys %path_versions);
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2014-12-27 20:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (177 votes), past polls