my $sv = "Some value"; my $gtktextentryish = Gtk3::somewidget->new( \$sv); # map gui stuff, etc. $window->show_all(); $sv = "Another scalar value!";