How to pass two arrays as arg in a subroutine?

From: Edward Wijaya (ewijaya_at_i2r.a-star.edu.sg)
Date: 08/05/04


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



Relevant Pages

  • Re: NSA wiretap, Friday night
    ... If your technology does not support it, dont use it. ... Good advice. ... I fully intended to re-post ...
    (comp.os.linux.security)
  • Re: County Court Claim Recieved in abandoned previous name, (advice please Part 1)
    ... Any advice on the first thing to do please ... becuase I have been charged with this by ... Norfiolk police for not notifying my Insurance company of this, ... I ahve of course spoke to the company involved who dont seem that bothered ...
    (uk.legal)
  • Re: Correct me if Im wrong
    ... it had nothing to do with the hospital it had to do with why i dont ... and you didnt follow the 2nd part of the advice like a fool. ... you would have to be pretty stupid to think that doctors have not tested ...
    (alt.support.diabetes)
  • Re: Advice Needed.
    ... "WStoreyII" wrote in message ... I dont have any degrees or certificates or any other ... > information and software engineering market, ... But if you do and you have any advice for me, ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: ADA advice can make you go blind was Re: Dr. Bernsteines Book
    ... >they dont like that kind of stuff. ... >> considering the continuing debate on ADA advice, ... >lol i cant eat carbs -- duh. ...
    (alt.support.diabetes)