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 Day Month Calendar
CGI File copy
CGI RegExp to validate URL syntax
CGI IRC Bot
CGI Traceroute Ping and wget
CGI Display File Contents
CGI Credit Card Validator
CGI Get file size over HTTP
CGI Show Server Version
CGI Email Subscribe