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 have passed this array reference to another Perl script (system("perl
> subscriplt1.pl  [EMAIL PROTECTED]");)
>
> I can get the reference value in subscript but I am not able to get the
> values in the array.
>
> Can anybody give some solution for this?
>
> Thanks in Advance,
> Siva

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.

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to