Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: warnings and grep problem

by Jasper (Chaplain)
on Jun 20, 2006 at 16:33 UTC ( #556457=note: print w/ replies, xml ) Need Help??


in reply to warnings and grep problem

It's almost certainly to do with running the regex on both the key and the value of the hash. Probably some of the values of a packlist object (returned by ExtUtils::Installed->new->packlist()) are undefined... Is there a function of that packlist that returns what you want, rather than dumping the whole object hash?

There's no point in doing /match/ && s/match/foo/ that's silly. Instead, try something like  defined && s/match/foo/ inside the grep.

But know what you want to run the substitution on first (and other people have suggested this, I know) and do it only on those...


Comment on Re: warnings and grep problem
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2014-10-20 05:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (72 votes), past polls