http://qs1969.pair.com?node_id=517176

jesuashok has asked for the wisdom of the Perl Monks concerning the following question:

Hi All monks

I have a doubt in creating a empty array reference.

#!/usr/local/bin/perl + @d = ( 1,2); $array = \@d; $array = \(); $$array[0] = 1; + print "Value :", $$array[0] , "\n";
In the above code

If I comment "$array = \@d;" then If I run the code I am getting an error like

<bold>Not an ARRAY reference</bold>

Can't I create Empty array reference.

Or am I am making any mistake in understanding the array reference

Please adive me on the same.

Thank you all

"Keep pouring your ideas"