|
|
| Pathologically Eclectic Rubbish Lister | |
| PerlMonks |
Removing Duplicates from Array Passed by Referenceby arunhorne (Pilgrim) |
| on May 16, 2003 at 13:47 UTC ( [id://258641]=perlquestion: print w/replies, xml ) | Need Help?? |
|
arunhorne has asked for the wisdom of the Perl Monks concerning the following question: Monks, I have the following sub I wrote to remove duplicates from an array. I want to modify it so I can pass the array by reference and modify the contents of the referenced array. Thus benefits should be two-fold, saving of stack memory (handy for larger arrays) but also don't need to return a value as the actual passed array it modified. Can anyone help me as I don't know how to do this. My original code it below: ____________ Arun
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||