Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (7)
As of 2018-08-20 16:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Asked to put a square peg in a round hole, I would:









    Results (192 votes). Check out past polls.

    Notices?