As you have it, the scope of the lexical variable my $select_input_file is limited to the sub open_file. A quick hack would be to declare it outside of the sub, so it becomes globally visible.
BTW, using strictures would have warned you that $select_input_file within push_button() is not what you thought it is...
In reply to Re^2: Tcl::Tk getOpenFile Not Working - Missing File Operand
by almut
in thread Tcl::Tk getOpenFile Not Working - Missing File Operand
by phillc
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |