Help for this page

Select Code to Download


  1. or download this
    @a = (1,2,3); delete $a[1]
  2. or download this
    @a = (1,2,3);
    delete $a[1];
    print "($_)\n" for @a;
    
  3. or download this
    (1)
    ()
    (3)
    
  4. or download this
    @a = (1,2,3);
    delete $a[1];
    print "I'm ", exists $a[1] ? "here" : "gone";
    ...
    @b = (1,2,3);
    $b[1] = undef;
    print "I'm ", exists $b[1] ? "here" : "gone";
    
  5. or download this
    I'm gone
    I'm here