CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Intermediate: Passing arrays to subroutines: Edit Log



andy_wood
Novice

Aug 18, 2009, 4:05 AM


Views: 741
Passing arrays to subroutines

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)


Edit Log:
Post edited by andy_wood (Novice) on Aug 18, 2009, 4:06 AM
Post edited by andy_wood (Novice) on Aug 18, 2009, 4:07 AM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives