in reply to How to launch a gui and then load a file

sub not_from_argv { my $filename = get_filename(); my $widget = build_widget( $filename ); $widget->pack...; }