diff options
author | Nick Ing-Simmons <nik@tiuk.ti.com> | 2003-01-22 09:06:23 +0000 |
---|---|---|
committer | Nick Ing-Simmons <nik@tiuk.ti.com> | 2003-01-22 09:06:23 +0000 |
commit | c7732655732824f25d1659f5ebb5d4c3538d32e8 (patch) | |
tree | ba9cedaae322cfd75da8d624fa8290c70865d5d8 /lib | |
parent | 9110aad070a9791bfefe4a0d1718537633723305 (diff) | |
download | perl-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')
-rw-r--r-- | lib/open.pm | 4 |
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"); |