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

Re: returnong array in custom subroutine

by kroach (Pilgrim)
on Aug 31, 2016 at 14:08 UTC ( [id://1170896]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $normalized = my $numdiv / $numden;
    
  2. or download this
    foreach my $element(@array) {    # loop over args
        ... 
        my $normalized = my $numdiv / $numden; # normalize
    }
    return $normalized;
    
  3. or download this
    use List::Util qw( min max );
    
    ...
    
        return @array;
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (11)
As of 2024-04-19 16:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found