Help for this page

Select Code to Download


  1. or download this
    push @{$dataPos{$data[$_]}}, $_ for 0 .. $#data;
    
  2. or download this
    my $foo;        # $foo is undefined
    push @$foo, 23;
    print "I found @{$foo}\n";
    
  3. or download this
    push @{ undef() }, 99;
    
  4. or download this
    my $foo = undef;
    shift @{$foo};
    print "Foo: $foo\n";  # prints Foo: ARRAY(0x12121212)