[Pidgin] #10641: perl add_choice adds same choices within a loop

Pidgin trac at pidgin.im
Wed Nov 4 15:53:58 EST 2009


#10641: perl add_choice adds same choices within a loop
--------------------+-------------------------------------------------------
 Reporter:  rlazur  |        Owner:  deryni 
     Type:  defect  |       Status:  new    
Milestone:          |    Component:  plugins
  Version:  2.6.3   |   Resolution:         
 Keywords:  perl    |  
--------------------+-------------------------------------------------------

Comment(by rlazur):

 Replying to [comment:1 deryni]:
 > Does this sample code always add the last (or I suppose possibly the
 first but that would surprise me) matching item from your file? While the
 debug info line displays the correct information? Does it work if your
 input is numbers instead of strings? Does it work if you assign $1 to some
 other my/local variable in the loop before passing it to add_choice?

 Sorry for the delay.... Geez, I even left this tab open for an hour...

 Yes, add_choice() adds anything when it is outside of a loop. I've tried
 assigning $1 to a local my $var, and still had the same issue.

 I'll look into setting a quick $i = 0 $i++ loop variable to set the
 choice.

-- 
Ticket URL: <http://developer.pidgin.im/ticket/10641#comment:2>
Pidgin <http://pidgin.im>
Pidgin


More information about the Tracker mailing list