Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

Re^2: module w/ object-oriented and functional interfaces: best practices?

by BrowserUk (Pope)
on Sep 21, 2012 at 20:22 UTC ( #994988=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download

  1. or download this
        my( avg, $stddev ) = avgNstddev( $bigStruct->{something}{something
    +else} ); ## hash expression yields an array ref.
  2. or download this
        my $stats = Stats:Mod->new;
        my $stddev = $stats->stddev;
  3. or download this
    for my $something ( keys %bigstruct ) {
        for my $somethingelse ( keys %{ $bigstruct->{ $something } } ) {
  4. or download this
    my $stats = Stats::Module->new( $bigstruct->{ $something }{ $something
    +else } );
    my( $avg = ( $stats->average, $stats->stddev );

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://994988]
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: (8)
As of 2015-07-08 02:13 GMT
Find Nodes?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...

    Results (93 votes), past polls