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.