jesuashok has asked for the wisdom of the Perl Monks concerning the following question:
I have a doubt in creating a empty array reference.
In the above code#!/usr/local/bin/perl + @d = ( 1,2); $array = \@d; $array = \(); $$array[0] = 1; + print "Value :", $$array[0] , "\n";
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Understandig on Creating Empty array reference
by Corion (Patriarch) on Dec 16, 2005 at 09:21 UTC | |
Re: Understandig on Creating Empty array reference
by davido (Cardinal) on Dec 16, 2005 at 09:23 UTC |