Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
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 lurking in the Monastery: (2)
As of 2018-01-16 13:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How did you see in the new year?










    Results (180 votes). Check out past polls.

    Notices?