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 Directory Listing
CGI Email Subscribe
CGI Animation
CGI Game
CGI Day Month Calendar
CGI Detecting User IP
CGI Populating a hash from an array
CGI Read File Contents
CGI IRC Server
CGI File copy