How to pass two arrays as arg in a subroutine?
From: Edward Wijaya (ewijaya_at_i2r.a-star.edu.sg)
Date: 08/05/04
- Next message: Anand V: "doubt in Definition of sub routine."
- Previous message: Sanjay Arora: "RE: Help needed in extracting html over HTTTPS protocol."
- Next in thread: Kamal Gupta: "RE: How to pass two arrays as arg in a subroutine?"
- Maybe reply: Kamal Gupta: "RE: How to pass two arrays as arg in a subroutine?"
- Maybe reply: WilliamGunther_at_aol.com: "Re: How to pass two arrays as arg in a subroutine?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 05 Aug 2004 18:07:06 +0800 To: beginners@perl.org
Hi,
I have a subroutine that take 2 arrays as argument.
I dont' know how to construct it?
sub mysub{
my (@array1, @array2) = @_; # is this correct? How do I do it?
#process @array1
#process @array2 etc
return @array3;
}
Please advice.
Thanks so much for your time.
Regards,
Edward WIJAYA
SINGAPORE
- Next message: Anand V: "doubt in Definition of sub routine."
- Previous message: Sanjay Arora: "RE: Help needed in extracting html over HTTTPS protocol."
- Next in thread: Kamal Gupta: "RE: How to pass two arrays as arg in a subroutine?"
- Maybe reply: Kamal Gupta: "RE: How to pass two arrays as arg in a subroutine?"
- Maybe reply: WilliamGunther_at_aol.com: "Re: How to pass two arrays as arg in a subroutine?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|