Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: "Junkyard" Puzzle: Average of Numbers

by jmcnamara (Monsignor)
on May 14, 2001 at 02:04 UTC ( #80113=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        sub average1 {
            local$"="+";eval("@{$_[0]}")/@{$_[0]}
        }
    
  2. or download this
        sub average2 {
            local$"="+";eval("@_")/@_
        }
    
  3. or download this
        sub average3 {
            eval(join"+",@_)/@_
        }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://80113]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (13)
As of 2014-08-01 16:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Who would be the most fun to work for?















    Results (28 votes), past polls