Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Autovivification in perl

by ikegami (Pope)
on Jan 10, 2014 at 20:24 UTC ( #1070186=note: print w/replies, xml ) Need Help??


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?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1070186]
help
Chatterbox?
[choroba]: Aren't they the standard X colours?
[ambrus]: choroba: that's not clear, since Tk runs on systems that don't even have X.

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (7)
As of 2017-10-17 11:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (227 votes). Check out past polls.

    Notices?