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 Animation
CGI Email Subscribe
CGI Detecting User IP
CGI Populating a hash from an two arrays
CGI Anti Leech Script
CGI Traceroute Ping and wget
CGI Forward URL
CGI Picthing
CGI Day Month Calendar
CGI Get file size over HTTP