minstr#
Return the lexically smallest value in the list.
Synopsis#
my $s = minstr @values;
my $s = minstr 'A'..'Z'; # 'A'
What you get back#
The first (original) list element whose stringification compares
less than every other element’s stringification under lt
(byte-wise comparison). Empty list yields undef.
Examples#
my $s = minstr 'hello', 'world'; # 'hello'
my $s = minstr qw( foo bar baz ); # 'bar'
my $s = minstr (); # undef
Differences from upstream#
Fully compatible with upstream.
See also#
maxstr— string-wise maximum.min— numerical minimum.