Help for this page

Select Code to Download


  1. or download this
    sub column_exists
    {
      my ( $ArrayRef, $Column ) = @_;
      return ( $ArrayRef->[$Column] || $ArrayRef->[0] );
    }
    
  2. or download this
      my $label_colnum = &column_exists( \@data, 1 )
      if ( $label_colnum == -1 ) { die "Something bad!"; }