
andy_wood
Novice
Aug 18, 2009, 4:05 AM
Post #1 of 4
(650 views)
|
|
Passing arrays to subroutines
|
Can't Post
|
|
Hi Everyone, I have a script that passes three arrays into a subroutine held in a perl module (PM1.pm) I have created: PM1::Process_Data_File(\@_array1, \@_array2, \@_array3); In PM1.pm the arguments are handled as follows: my($_array1, $_array2, $_array3) = @_; .... What I want to know is how I go on from this Module PM1.pm and pass these to another module PM2.pm with the subroutine Further_Processing so I can use them again. I am unsure what to do because the arrays have been flattened. PM2::Further_Processing(?, ?, ?); Thanks,
(This post was edited by andy_wood on Aug 18, 2009, 4:07 AM)
|