my $circuit_id = ( $if_descr =~ /([^.]*)(?:\.(.*))?/ ? $1 . (defined($2) ? $2 : '') : undef ); #### (my $circuit_id = $if_descr) =~ s/\.//;