- or download this
my $original_x = 3;
my $user_x = $f1->Entry( -textvariable => \$original_x )->pack;
- or download this
$mw->Button( -command => \&print_entries )->pack;
...
my $val = $user_x->cget('-text');
print "$val\n";
}
- or download this
sub print_entries
{
...
my $val = $$var_ref;
print "$val\n";
}
- or download this
sub print_entries
{
print "$original_x\n";
}