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 Capitalize the first word
CGI Random Image Loader
CGI Populating a hash from an array
CGI OS Version
CGI Simple User Counter
CGI RegExp to validate URL syntax
CGI Find the Mean Value of an Array
CGI Bandwidth Bandit
CGI Day Month Calendar
CGI ABCNews Retriever