```{index} single: minstr; List::Util function ``` ```{index} single: List::Util::minstr; Perl function ``` # minstr Return the lexically smallest value in the list. ## Synopsis ```perl 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 ```perl 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.