passing arguments to functions
jassismara_at_xtra.co.nz
Date: 01/20/04
- Next message: Rob Hanson: "RE: passing arguments to functions"
- Previous message: Rob Hanson: "RE: Search and replace pattern in a file"
- Next in thread: Rob Hanson: "RE: passing arguments to functions"
- Maybe reply: Rob Hanson: "RE: passing arguments to functions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: <beginners@perl.org> Date: Tue, 20 Jan 2004 14:15:00 +1300
Hi all
Problem:
I want to send 2 arguments to a subroutine in the form of arrays and want to use their result which is also in the form of an array.
Explanation:
suppose i have 2 arrays
@a=`/bin/cat /some/file` ; # A file that has a list of users
@b=`/bin/cat /another/file` ; # Another file with a list of users
sub try
{
*&%&^&^&^$$@%$&(&)(*
the code will do some sort of comparison of the elements of both arrays and return the results in the form of an array
........
here i want to return my result in the form of an array
say "@answer"
}
how I can use the resulted array "@answer" in my main program ?
Solution:
????
Regards
--Bobby
- Next message: Rob Hanson: "RE: passing arguments to functions"
- Previous message: Rob Hanson: "RE: Search and replace pattern in a file"
- Next in thread: Rob Hanson: "RE: passing arguments to functions"
- Maybe reply: Rob Hanson: "RE: passing arguments to functions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|