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. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/