in reply to Tk::Browseentry -browsecmd Option with Subroutine Parameter
\&selection("option1")
This is not a reference to subroutine called with a parameter. In fact, there's no such a thing as a code reference plus parameters. You have two options:
-browsecmd => sub { selection('option1') }
-browsercmd => [ \&selection, 'option1' ]
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Tk::Browseentry -browsecmd Option with Subroutine Parameter
by erpse (Initiate) on Mar 19, 2015 at 15:00 UTC |