in reply to Perl/Tk listbox question

Hi,

I don't see where you define $nrd_list in your code. Do you use strict; and use warnings; ? Are you sure you want to get('active')? Could  curselection() be more appropriate?

You will get the best help if you post a short stripped down runnable example that demonstrates your problem.


Cheers, Christoph

Replies are listed 'Best First'.
Re^2: Perl/Tk listbox question
by perl_seeker (Scribe) on Aug 13, 2009 at 12:23 UTC
    Thank you,

    it was the $nrd_list causing the problem (typo) . Silly of me. I needed my $tmw = $nr_list->get('active'); and i was using my $tmw = $nrd_list->get('active');

    get('active') is working fine.

    Thanks again, cheers