maxstr#
Return the lexically largest value in the list.
תקציר#
my $s = maxstr @values;
my $s = maxstr 'A'..'Z'; # 'Z'
מה מוחזר#
The first (original) list element whose stringification compares greater than every other element’s stringification under gt (byte-wise comparison). Empty list yields undef.
דוגמאות#
my $s = maxstr 'hello', 'world'; # 'world'
my $s = maxstr qw( foo bar baz ); # 'foo'
my $s = maxstr (); # undef
הבדלים מן ה-upstream#
Fully compatible with upstream.
ראו גם#
minstr- string-wise minimum.max- numerical maximum.