Help for this page

Select Code to Download


  1. or download this
    sub combine_rows
    {
    ...
        }
        return \@joined;
    }
    
  2. or download this
    @ports = qw( portname portID port802 );
    @val1 = qw( ON ON OFF );
    ...
    my $joined = combine_rows( "ports", \@ports, \@val1, \@val2 );
    
    print "$_\n" for ( @$joined );