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

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

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


Aug 18, 2009, 4:05 AM

Views: 1247
Passing arrays to subroutines

Hi Everyone,

I have a script that passes three arrays into a subroutine held in a perl module ( I have created:

PM1::Process_Data_File(\@_array1, \@_array2, \@_array3);

In the arguments are handled as follows:

my($_array1, $_array2, $_array3) = @_;


What I want to know is how I go on from this Module and pass these to another module 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(?, ?, ?);


(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