[JDEV] Help with Net::Jabber problem

jdev at graham.globalcloud.net jdev at graham.globalcloud.net
Thu Sep 19 11:07:25 CDT 2002


Chris Wilkes wrote:

>Arg!  Can people on this list not top-post!?  It makes for very hard
>reading when the question is before the last reply.
>
>  
>
>>Chris Wilkes wrote:Chris Wilkes wrote:
>>
>>    
>>
>>>Try this
>>>    use Net::Jabber qw(Client);
>>>      
>>>
>On Thu, Sep 19, 2002 at 10:52:04AM -0400, jdev at graham.globalcloud.net wrote:
>  
>
>>That resolved my initial problem.  Now I get the following:
>>Can't use string ("3D89E3F6") as a HASH ref while "strict refs" in use 
>>at /usr/lib/perl5/site_perl/5.6.0/Net/Jabber.pm line 666.
>>
>>Should I comment out "use strict" in Jabber.pm or is there something 
>>else wrong?
>>    
>>
>
>I haven't had a problem like this with my code and using Net::Jabber, so
>its probably in your code.  I noticed that you didn't have a "use
>strict" in the original code, can you throw that in there?
>
>The above error indicates that you're doing something wrong with a hash
>in your code.  If you're not sure what kind of variable you have use
>Data::Dumper like this:
>
>	use Data::Dumper;
>	my $dontknow = somefunc();
>	print Data::Dumper($dontknow);
>
>  
>

The code snippet I was using was passing the session ID to a Jabber 
new() routine.
I shifted the session ID off and all is fine.
Thanks for the help.
-
Graham





More information about the JDev mailing list