/usr/share/doc/libtk-gbarr-perl/examples/numentryplain is in libtk-gbarr-perl 2.08-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | # Entry for entering numeric values, plain version.
#!/usr/local/bin/perl -w
use strict;
use Tk;
use Tk::NumEntryPlain;
my $mw = Tk::MainWindow->new;
my $nume = $mw->NumEntryPlain(-command => sub { print "Value = ",@_,"\n" });
$nume->pack(-side => 'top', -fill => 'x');
$nume = $mw->NumEntryPlain(
-minvalue => 10,
-maxvalue => 100,
-defaultvalue => -2,
-command => sub { print "Value = ",@_,"\n" }
);
$nume->pack(-side => 'top', -fill => 'x');
Tk::MainLoop;
__END__
|