Re: passing array reference from one perl script to another perl scirpt

2008-01-28 Thread praveen mall
- From: Chas. Owens [mailto:[EMAIL PROTECTED] Sent: Friday, January 25, 2008 6:32 PM To: praveen mall Cc: beginners@perl.org Subject: Re: passing array reference from one perl script to another perl scirpt On Jan 25, 2008 4:45 AM, praveen mall [EMAIL PROTECTED] wrote: snip

Re: passing array reference from one perl script to another perl scirpt

2008-01-28 Thread praveen mall
reference from one perl script to another perl scirpt On Jan 25, 2008 4:45 AM, praveen mall [EMAIL PROTECTED] wrote: snip There are two script. From first script I need to call the second program and in second program I want to receive the hash. I have complete hash in first program

Re: passing array reference from one perl script to another perl scirpt

2008-01-25 Thread praveen mall
Idea is good to turn one script as a module. But I can not do anyhow. What I want to achieve is: There are two script. From first script I need to call the second program and in second program I want to receive the hash. I have complete hash in first program and calling second program by system

Re: passing array reference from one perl script to another perl scirpt

2008-01-25 Thread Rob Dixon
praveen mall wrote: Idea is good to turn one script as a module. But I can not do anyhow. What I want to achieve is: There are two script. From first script I need to call the second program and in second program I want to receive the hash. I have complete hash in first program and calling

RE: passing array reference from one perl script to another perl scirpt

2008-01-25 Thread Nagrale, Ajay
. ~Ajay -Original Message- From: Chas. Owens [mailto:[EMAIL PROTECTED] Sent: Friday, January 25, 2008 6:32 PM To: praveen mall Cc: beginners@perl.org Subject: Re: passing array reference from one perl script to another perl scirpt On Jan 25, 2008 4:45 AM, praveen mall [EMAIL PROTECTED

Re: passing array reference from one perl script to another perl scirpt

2008-01-25 Thread Chas. Owens
On Jan 25, 2008 4:45 AM, praveen mall [EMAIL PROTECTED] wrote: snip There are two script. From first script I need to call the second program and in second program I want to receive the hash. I have complete hash in first program and calling second program by system call by passing hash

Re: passing array reference from one perl script to another perl scirpt

2008-01-24 Thread mallu . it
On Jan 8, 7:05 pm, [EMAIL PROTECTED] (Chas. Owens) wrote: On Jan 8, 2008 4:32 AM, Siva Prasad [EMAIL PROTECTED] wrote: Hi Gurus, Iam getting problem in accessing the array reference which is passed as command line argument to a perl script from another perl script I have a main perl

RE: passing array reference from one perl script to another perl scirpt

2008-01-24 Thread Thomas Bätzler
[EMAIL PROTECTED] wrote:e solution for this? What I see is that , reference is received in next program but I am not able to access the hash after dereferencing it. I was passing the hash reference. Ever since memory management units (MMU) became all the rage, processes (or program if you

Re: passing array reference from one perl script to another perl scirpt

2008-01-24 Thread Tom Phoenix
On Jan 24, 2008 3:06 AM, [EMAIL PROTECTED] wrote: What I see is that , reference is received in next program but I am not able to access the hash after dereferencing it. I was passing the hash reference. No; it's not possible to pass a hash by reference from one program to another. You are

Re: passing array reference from one perl script to another perl scirpt

2008-01-24 Thread Chas. Owens
On Jan 24, 2008 6:06 AM, [EMAIL PROTECTED] wrote: snip What you are trying to do there won't work and even if it did it would be a bad idea. It appears as if you are trying to modularize your code. There are better ways of doing it than that. If you describe what effect you are trying

Re: passing array reference from one perl script to another perl scirpt

2008-01-08 Thread John W. Krahn
Siva Prasad wrote: Hi Gurus, Hello, Iam getting problem in accessing the array reference which is passed as command line argument to a perl script from another perl script It won't work. You can't do that. I have a main perl script I have declared an array as our @arr=(1,2,3,4); And

Re: passing array reference from one perl script to another perl scirpt

2008-01-08 Thread Chas. Owens
On Jan 8, 2008 4:32 AM, Siva Prasad [EMAIL PROTECTED] wrote: Hi Gurus, Iam getting problem in accessing the array reference which is passed as command line argument to a perl script from another perl script I have a main perl script I have declared an array as our @arr=(1,2,3,4); And I