Thread Userinterface Modul Clui_sid (8 answers)
Opened by Kuerbis at 2012-05-03 14:38

Kuerbis
 2012-05-05 15:42
#158090 #158090
User since
2011-03-20
947 Artikel
BenutzerIn
[default_avatar]
Code (perl): (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/env perl
use warnings;
use 5.12.0;
use utf8;
binmode STDOUT, ':encoding(utf-8)';

use Term::Choose qw(choose);

my $choosen = choose( [ 'aaa' .. 'lzz' ], { prompt => 'Auswahl' } );
say "<$choosen>";


# in list Kontext multiple choice mit Leertaste
my @choosen = choose( [ 'aa' .. 'zz', "\x{263a}" ], { prompt => 'Auswahl' } );
say "<@choosen>\n";



Update:
Anhänge
text/plain
1049 lines
Choose.pm

Last edited: 2012-05-12 17:52:12 +0200 (CEST)

View full thread Userinterface Modul Clui_sid