minstr#

Return the lexically smallest value in the list.

Σύνοψη#

my $s = minstr @values;
my $s = minstr 'A'..'Z';         # 'A'

Τι επιστρέφεται#

The first (original) list element whose stringification compares less than every other element’s stringification under lt (byte-wise comparison). Empty list yields undef.

Παραδείγματα#

my $s = minstr 'hello', 'world';    # 'hello'
my $s = minstr qw( foo bar baz );   # 'bar'
my $s = minstr ();                  # undef

Διαφορές από το upstream#

Fully compatible with upstream.

Δείτε επίσης#

  • maxstr - string-wise maximum.

  • min - numerical minimum.