summaryrefslogtreecommitdiff
path: root/lib/open.pm
diff options
context:
space:
mode:
authorNick Ing-Simmons <nik@tiuk.ti.com>2003-01-22 09:06:23 +0000
committerNick Ing-Simmons <nik@tiuk.ti.com>2003-01-22 09:06:23 +0000
commitc7732655732824f25d1659f5ebb5d4c3538d32e8 (patch)
treeba9cedaae322cfd75da8d624fa8290c70865d5d8 /lib/open.pm
parent9110aad070a9791bfefe4a0d1718537633723305 (diff)
downloadperl-c7732655732824f25d1659f5ebb5d4c3538d32e8.tar.gz
Report layer name (without arg) on fail, and attempt to
autoload layer name. (Fix for [perl #20460]). p4raw-id: //depot/perlio@18549
Diffstat (limited to 'lib/open.pm')
-rw-r--r--lib/open.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/open.pm b/lib/open.pm
index d771fcb0bb..c2940931b7 100644
--- a/lib/open.pm
+++ b/lib/open.pm
@@ -95,8 +95,8 @@ sub import {
my $target = $layer; # the layer name itself
$target =~ s/^(\w+)\(.+\)$/$1/; # strip parameters
- unless(PerlIO::Layer::->find($target)) {
- warnings::warnif("layer", "Unknown PerlIO layer '$layer'");
+ unless(PerlIO::Layer::->find($target,1)) {
+ warnings::warnif("layer", "Unknown PerlIO layer '$target'");
}
}
push(@val,":$layer");