The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
# IUP::Text + MASK example
#
# Creates an IUP::Text that accepts only numbers

use strict;
use warnings;

use IUP ':all';

my $txt = IUP::Text->new( MASK=>'/d*', EXPAND=>"YES" );

my $dg = IUP::Dialog->new( child=>$txt, TITLE=>"MASK (numbers only)", SIZE=>"200x" );
$dg->Show();

IUP->MainLoop();