summaryrefslogtreecommitdiffstats
path: root/perl-install/mouse.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/mouse.pm')
-rw-r--r--perl-install/mouse.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/perl-install/mouse.pm b/perl-install/mouse.pm
index bc7a9e565..815d64f7c 100644
--- a/perl-install/mouse.pm
+++ b/perl-install/mouse.pm
@@ -143,8 +143,7 @@ sub fullname2mouse {
sub serial_ports() { map { "ttyS$_" } 0..7 }
sub serial_port2text {
- $_[0] =~ /ttyS (\d+)/x;
- "$_[0] / COM" . ($1 + 1);
+ $_[0] =~ /ttyS (\d+)/x ? "$_[0] / COM" . ($1 + 1) : $_[0];
}
sub read {