Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^2: Use of uninitialized value in pattern match (m//)

by Sushma (Initiate)
on Nov 09, 2012 at 09:47 UTC ( #1003091=note: print w/ replies, xml ) Need Help??


in reply to Re: Use of uninitialized value in pattern match (m//)
in thread Use of uninitialized value in pattern match (m//)

hi, I am also getting same error for below code if ($response->{'Name'} =~ /Approval/) Could you pleas help me. Thanks, sushma


Comment on Re^2: Use of uninitialized value in pattern match (m//)
Re^3: Use of uninitialized value in pattern match (m//)
by Corion (Pope) on Nov 09, 2012 at 09:53 UTC

    If you get that error, looking at perldiag usually tells you where the error comes from. In your case, $response->{'Name'} is not what you think it is.

    I recommend looking at $response, maybe by using Data::Dumper.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2015-07-05 16:25 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 (67 votes), past polls