Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    use Data::Dump qw/dd/;
    ...
    dd $hash{a}->$get(qw/x x x/); # no autovivification
    #dd $hash{a}{x}{x}{x};        # autovivification
    dd \%hash;
    
  2. or download this
    { a => { b => { c => 666 } } }
    666
    undef
    { a => { b => { c => 666 } } }
    
  3. or download this
      $name = $user[$idx]  -> {'name'};           # may create a hash
      $name = $user[$idx]  -> $safe -> {'name'};  # leaves @user alone
      $name = $person      -> name;               # chokes on undef
      $name = $person      -> $safe -> name;      # passes undef on