CODE
LIBARY.COM
Home
/
CGI
CGI Maximum Value of an Array
Maximum Value of an Array
sub max { my($max) = shift; foreach (@_) { $max = $_ if $max < $_; } $max; }
sub max { my($max) = shift; foreach (@_) { $max = $_ if $max < $_; } $max; }
Copy to Clipboard
Related Snippets
CGI Populating a hash from an array
CGI Find the Minimum Value of an Array
CGI IRC Bot
CGI Upload a file
CGI Simple User Counter
CGI File copy
CGI Find the Mean Value of an Array
CGI Forward URL
CGI Read File Contents
CGI Remove a range of ANSI characters