Help for this page

Select Code to Download


  1. or download this
    my $number=70   # I am just using 70 as an example
    my $element=[
    ...
        [],
    ];
    $array[$number]=$element;
    
  2. or download this
    sub asubroutine   {
          $my number=shift ;   # $number takes the value of 20
    ...
               # Do something
         }
    }
    
  3. or download this
    if (@{$x->[3]}>0)    {
    
  4. or download this
    sub asubroutine   {
          $my number=shift ;   # $number takes the value of 20
    ...
                }
           }
    }
    
  5. or download this
    $array[$number] = undef,
    
  6. or download this
    delete $array[$number];
    
  7. or download this
    splice (@array,$number,1); #wipes out that element completely
    
  8. or download this
    splice(@tables,$number,0,undef); #inserts a new undefined value in the
    + same element number