Help for this page

Select Code to Download


  1. or download this
        if ($neighbor eq undef){}
        elsif ($vcid eq undef) {}
        else {
    
  2. or download this
        if ( !defined $neighbor && !defined $vcid ) {
    
  3. or download this
    my $vcid;
    my $tag;
    ...
    my $xcon = '';
    my $cos = '';
    my @splitcos;
    
  4. or download this
        $unit = $splitunit[2];
    
    # change to:
    
        $unit = $splitunit[2] || '';
    
  5. or download this
        $vlanida = $splitvlan[2];
        $vlanidb = $splitvlan[4];
    ...
    
        $vlanida = $splitvlan[2] || '';
        $vlanidb = $splitvlan[4] || '';
    
  6. or download this
            $cos = $splitcos[2];
    
    # change to:
    
            $cos = $splitcos[2];
    
  7. or download this
        $neighbor = $splitxc[1];
        $vcid = $splitxc[2];
    ...
    
        $neighbor = $splitxc[1] || '';
        $vcid = $splitxc[2] || '';
    
  8. or download this
        $pop = $splittag[4];
    
    # change to:
    
        $pop = $splittag[4] || '';
    
  9. or download this
        if ($neighbor eq undef){}
        elsif ($vcid eq undef) {}
    ...
    # change to:
    
        if ( length $neighbor && length $vcid ) {