1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
#!/usr/bin/env perl use warnings; use 5.12.0; use utf8; binmode STDOUT, ':encoding(utf-8)'; use lib '.'; use Clui_sid qw(aw); my $choosen = aw( [ 'aaa' .. 'lzz' ], { prompt => 'Auswahl' } ); say "<$choosen>"; # in list Kontext multiple choice mit Leertaste my @choosen = aw( [ 'aa' .. 'zz', "\x{263a}" ], { prompt => 'Auswahl' } ); say "<@choosen>\n"; sleep 2; say help();
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";