Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

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

by choroba (Chancellor)
on Oct 31, 2012 at 17:12 UTC ( #1001711=note: print w/replies, xml ) Need Help??


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

The key $componentName does not exist in %component_path or is assigned an undef. The reason might be you assign the number of subroutine arguments to $componentName: instead of
my $componentName = @_;
you probably meant
my ($componentName) = @_; # list context
or
my $componentName = $_[0];
or even
my $componentName = shift;
لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Replies are listed 'Best First'.
Re^2: Use of uninitialized value in pattern match (m//)
by anaconda_wly (Scribe) on Oct 31, 2012 at 17:31 UTC
    Yes, you both are right. I missed the componentName's value when called. Thanks!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1001711]
help
Chatterbox?
[james28909]: foreach server this bot is on, the gateway sends me a json response, which i parse out all the info with JSON, and this response has user information, i need to be able to add a user, and then update the user info when they join/leave rooms ect
[james28909]: i think im good
[james28909]: i just watched a youtube video
[karlgoethebier]: james28909: Did you look on CPAN?
[james28909]: lol
[karlgoethebier]: james28909: Super Search here ?
[karlgoethebier]: james28909: No kidding

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (11)
As of 2017-05-25 16:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?