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.