projects
/
platform
/
upstream
/
perl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9110aad
)
Report layer name (without arg) on fail, and attempt to
author
Nick Ing-Simmons
<nik@tiuk.ti.com>
Wed, 22 Jan 2003 09:06:23 +0000
(09:06 +0000)
committer
Nick Ing-Simmons
<nik@tiuk.ti.com>
Wed, 22 Jan 2003 09:06:23 +0000
(09:06 +0000)
autoload layer name. (Fix for [perl #20460]).
p4raw-id: //depot/perlio@18549
lib/open.pm
patch
|
blob
|
history
diff --git
a/lib/open.pm
b/lib/open.pm
index
d771fcb
..
c294093
100644
(file)
--- 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");