Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Leaking Function Return

by cgoolsby (Novice)
on Oct 06, 2017 at 15:05 UTC ( #1200833=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
     use ModuleName qw(moduleFunction);
    @arrayPassedIn = qw(some values here); 
    #there are 9 values, to be specific.
    $return = moduleFunction(\@arrayPassedIn);
    @arrayToPrint = @$return;
    
  2. or download this
    sub moduleFunction{
    $input = shift;
    @arrayToBeManipulated = @$input;
    ...
    @newArray = qw(6 unique values);
    return \@newArray;
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1200833]
Approved by stevieb
Front-paged by Corion
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2017-10-21 07:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (269 votes). Check out past polls.

    Notices?