summaryrefslogtreecommitdiff
path: root/xpp/utils/zconf/Zaptel/Chans.pm
diff options
context:
space:
mode:
Diffstat (limited to 'xpp/utils/zconf/Zaptel/Chans.pm')
-rw-r--r--xpp/utils/zconf/Zaptel/Chans.pm8
1 files changed, 4 insertions, 4 deletions
diff --git a/xpp/utils/zconf/Zaptel/Chans.pm b/xpp/utils/zconf/Zaptel/Chans.pm
index 38e8a4b..cb0fb94 100644
--- a/xpp/utils/zconf/Zaptel/Chans.pm
+++ b/xpp/utils/zconf/Zaptel/Chans.pm
@@ -104,23 +104,23 @@ sub new($$$$$$) {
my $info = '';
if(defined $rest) {
# remarks in parenthesis (In use), (no pcm)
- while($rest =~ s/\s*(\([^)]+\))\s*//) {
+ while($rest =~ s/\s*(\([^)]+\))\s*/ /) {
$info .= " $1";
}
# Alarms
foreach my $alarm (@alarm_types) {
- if($rest =~ s/\s*(\b${alarm}\b)\s*//) {
+ if($rest =~ s/\s*(\b${alarm}\b)\s*/ /) {
push(@alarms, $1);
}
}
foreach my $sig (@sigtypes) {
- if($rest =~ s/^\Q$sig\E//) {
+ if($rest =~ s/^\Q$sig\E/ /) {
$signalling = $sig;
last;
}
}
warn "Unrecognized garbage '$rest' in $fqn\n"
- if length($rest);
+ if $rest =~ /\S/;
}
$self->{NUM} = $num;
$self->{FQN} = $fqn;