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