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 call by passing hash
reference as a parameter.

If anyone has solution of this then please let me know.

Thanks,
Praveen Mall

On Jan 25, 2008 12:11 AM, Chas. Owens <[EMAIL PROTECTED]> wrote:

> 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 to achieve, we may be able to point you in
> > > the right direction.
> >
> >
> > 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.
> snip
>
> No, what you are seeing is the result of turning a reference into a
> string.  You cannot turn a string back into a reference, even in the
> same Perl program.  Please describe what you want to do (not how you
> want to do it) and someone on this list will be able to point you in
> the right direction.  The proper answer is to probably turn that
> second script into a module that the first script can use.
>



-- 
Thanks and Regards,
Praveen Kumar Mall
Jr. SQA Engineer
Pune
Mo. No. 09850982204

Reply via email to