summaryrefslogtreecommitdiff
path: root/lib/Term/Cap.pm
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>2000-03-02 20:08:10 +0000
committerGurusamy Sarathy <gsar@cpan.org>2000-03-02 20:08:10 +0000
commitfe6f1558c7f680030b5f50795459bce8c0b94ba1 (patch)
treefa4ecf32f56db337590e06b5c228de3a44c69d65 /lib/Term/Cap.pm
parentf8fb7c905b2ebbea240082c064c2444b482a14f7 (diff)
downloadperl-fe6f1558c7f680030b5f50795459bce8c0b94ba1.tar.gz
still other multiline match cleanups (from Greg Bacon)
p4raw-id: //depot/perl@5450
Diffstat (limited to 'lib/Term/Cap.pm')
-rw-r--r--lib/Term/Cap.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Term/Cap.pm b/lib/Term/Cap.pm
index 1e95ec33b6..0954000e8d 100644
--- a/lib/Term/Cap.pm
+++ b/lib/Term/Cap.pm
@@ -107,8 +107,8 @@ sub termcap_path { ## private
push(@termcap_path, $ENV{TERMCAP})
if ((exists $ENV{TERMCAP}) &&
(($^O eq 'os2' || $^O eq 'MSWin32' || $^O eq 'dos')
- ? $ENV{TERMCAP} =~ /^[a-z]:[\\\/]/i
- : $ENV{TERMCAP} =~ /^\//));
+ ? $ENV{TERMCAP} =~ /^[a-z]:[\\\/]/is
+ : $ENV{TERMCAP} =~ /^\//s));
if ((exists $ENV{TERMPATH}) && ($ENV{TERMPATH})) {
# Add the users $TERMPATH
push(@termcap_path, split(/(:|\s+)/, $ENV{TERMPATH}))
@@ -157,7 +157,7 @@ sub Tgetent { ## public -- static method
my $foo = (exists $ENV{TERMCAP} ? $ENV{TERMCAP} : '');
# $entry is the extracted termcap entry
- if (($foo !~ m:^/:) && ($foo =~ m/(^|\|)${termpat}[:|]/)) {
+ if (($foo !~ m:^/:s) && ($foo =~ m/(^|\|)${termpat}[:|]/s)) {
$entry = $foo;
}