In your subroutine, return reference of each array (or hash) like this:

sub my_sub{
        #blah   
        return ([EMAIL PROTECTED],[EMAIL PROTECTED]);
}

Calling:
my ($array_ref1,$array_ref2)=&my_sub();

More Info ?
perldoc perlref

José.

-----Original Message-----
From: T.S.Ravi Shankar [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 11, 2003 7:09 PM
To: [EMAIL PROTECTED]
Subject: How do I return more than 1 array from a sub routine ?


Hi all :

How could I return more than 1 array or hash from a sub routine & collect them in 
different arrays or hashes in the calling program ??

Thanks,
Ravi


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



**** DISCLAIMER ****

"This e-mail and any attachment thereto may contain information which is confidential 
and/or protected by intellectual property rights and are intended for the sole use of 
the recipient(s) named above. 
Any use of the information contained herein (including, but not limited to, total or 
partial reproduction, communication or distribution in any form) by other persons than 
the designated recipient(s) is prohibited. 
If you have received this e-mail in error, please notify the sender either by 
telephone or by e-mail and delete the material from any computer".

Thank you for your cooperation.

For further information about Proximus mobile phone services please see our website at 
http://www.proximus.be or refer to any Proximus agent.


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to