Thread UI Frage (8 answers)
Opened by Kuerbis at 2022-05-24 09:19

Kuerbis
 2022-05-24 09:19
#194353 #194353
User since
2011-03-20
947 Artikel
BenutzerIn
[default_avatar]
Hallo,

kann mir jemand sagen, welche der dieser zwei Einstellungen besser als default-Einstellung geeignet ist?

Code (perl): (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/env perl
use warnings;
use 5.10.0;
use open qw(:std :utf8);
use Term::Choose::Util 0.134;

# Eins
my $new = Term::Choose::Util->new();
my $chosen_directory = $new->choose_a_directory();
say $chosen_directory if defined $chosen_directory;
my $chosen_file = $new->choose_a_file();
say $chosen_file if defined $chosen_file;

say "=" x 50;

# Zwei
$new = Term::Choose::Util->new( { prompt => '' } );
$chosen_directory = $new->choose_a_directory();
say $chosen_directory if defined $chosen_directory;
$chosen_file = $new->choose_a_file();
say $chosen_file if defined $chosen_file;

View full thread UI Frage