Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Finding the max()/min()

by tmoertel (Chaplain)
on Nov 11, 2004 at 05:12 UTC ( #406927=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        sub make_max_finder {
            my $max;
    ...
                $max;
            }
        }
    
  2. or download this
        make_max_finder->(1..10); # 10
    
  3. or download this
        my $max_finder = make_max_finder();
        $max_finder->($_) while <>;
        $max_finder->();  # retrieve maximum
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://406927]
help
Chatterbox?
[Happy-the-monk]: They say "you can tune a piano but you can't tunafish." - I think not everyone knows how to tune a piano and there's such a thing as canned tunafish.
[ikegami]: I tunashish, you tunafish, we all tunafish!

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (14)
As of 2017-11-17 19:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (271 votes). Check out past polls.

    Notices?