Help for this page

Select Code to Download


  1. or download this
    my $arr[] = [42,43,44]; # "typed" array ref
    
    ...
    my @arr;                ## @arr masks earlier declaration in same scop
    +e
    my $arr;                ## $arr masks earlier declaration in same scop
    +e
    my $arr{}               ## $arr{} masks earlier declaration in same sc
    +ope
    
  2. or download this
    my $a_ref = [1,2,3];    # old style
    $a_ref->{x};            ## Not a HASH reference (run time)