in reply to Need help with binding event in Tk
Perl thinks you possibly want to assign zero to the function show(). If that is not what you want, put parenthesis arount the $index = 0 part, or use a more conventional if..then..else construct. I'm not fond of using the ternary ?: operator in a void context myself, so I'd opt for the second option.$key eq "year" ? &show($bros->{$data}->[$list]) : $index = 0;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Need help with binding event in Tk
by Popcorn Dave (Abbot) on Jul 24, 2004 at 18:39 UTC | |
by runrig (Abbot) on Jul 25, 2004 at 01:22 UTC |