summaryrefslogtreecommitdiff
path: root/lib/File/Copy.pm
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>2000-02-29 08:13:56 +0000
committerGurusamy Sarathy <gsar@cpan.org>2000-02-29 08:13:56 +0000
commit1b1e14d34a33bfe0df591910cafcab54421ca8a8 (patch)
tree08139b987940809c84a23705445e464a57d17d1e /lib/File/Copy.pm
parent0dfc8e26aed087a9a86fe8dfa45fbe33997b9602 (diff)
downloadperl-1b1e14d34a33bfe0df591910cafcab54421ca8a8.tar.gz
more m//s and $ vs \z fixups (from Greg Bacon)
p4raw-id: //depot/perl@5349
Diffstat (limited to 'lib/File/Copy.pm')
-rw-r--r--lib/File/Copy.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/File/Copy.pm b/lib/File/Copy.pm
index 8638bee210..e6cf786034 100644
--- a/lib/File/Copy.pm
+++ b/lib/File/Copy.pm
@@ -83,7 +83,7 @@ sub copy {
if ($from_a_handle) {
*FROM = *$from{FILEHANDLE};
} else {
- $from = "./$from" if $from =~ /^\s/;
+ $from = "./$from" if $from =~ /^\s/s;
open(FROM, "< $from\0") or goto fail_open1;
binmode FROM or die "($!,$^E)";
$closefrom = 1;
@@ -92,7 +92,7 @@ sub copy {
if ($to_a_handle) {
*TO = *$to{FILEHANDLE};
} else {
- $to = "./$to" if $to =~ /^\s/;
+ $to = "./$to" if $to =~ /^\s/s;
open(TO,"> $to\0") or goto fail_open2;
binmode TO or die "($!,$^E)";
$closeto = 1;