http://www.perlmonks.org?node_id=1070186


in reply to Autovivification in perl

Without autovivification,

$quick[0][3] $ref->{Oxford}{Ram}{Population} $hash{ram}{mohan}{perl}{linux}

would have to be written as follows:

( $quick[0] //= [] )->[3] ((( $ref //= {} )->{Oxford} //= {} )->{Ram} //= {} )->{Population} ((( $hash{ram} //= {} )->{mohan} //= {} )->{perl} //= {} )->{linux}

Which do you prefer?