rammohan has asked for the wisdom of the Perl Monks concerning the following question:
what is the use of autovivification in perl? i know we are using this for dynamical data structure .. i studied about autovivification but i couldn't understood this.
this is my examples,
it showing result fine.when we use this autovivification in perl.Please let us knowprint "autovivification in perl using Array:\n"; my @quick = (); $quick[0][3] = "perl"; print Dumper @quick; print "autovivification in perl using scalar"; my $ref; $ref->{Oxford}->['Ram']->{Population} = 500000; print Dumper $ref; print "autovivification in perl using hash"; my %hash = (); $hash{ram}->{mohan}->{perl}->{linux}= "Larry_Wall"; print Dumper %hash;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Autovivification in perl
by choroba (Cardinal) on Jan 10, 2014 at 12:42 UTC | |
by ikegami (Patriarch) on Jan 10, 2014 at 20:27 UTC | |
Re: Autovivification in perl
by 2teez (Vicar) on Jan 10, 2014 at 13:29 UTC | |
Re: Autovivification in perl
by marto (Cardinal) on Jan 10, 2014 at 12:39 UTC | |
Re: Autovivification in perl (less clicks of the keyboard to create arbitrarily complex data structures)
by Anonymous Monk on Jan 10, 2014 at 13:47 UTC | |
Re: Autovivification in perl
by Athanasius (Archbishop) on Jan 10, 2014 at 14:59 UTC | |
Re: Autovivification in perl
by ikegami (Patriarch) on Jan 10, 2014 at 20:24 UTC | |
Re: Autovivification in perl
by LanX (Saint) on Jan 10, 2014 at 12:39 UTC | |
Re: Autovivification in perl
by pemungkah (Priest) on Jan 11, 2014 at 00:17 UTC |
Back to
Seekers of Perl Wisdom