diff options
author | Nicholas Clark <nick@ccl4.org> | 2007-01-15 14:38:58 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2007-01-15 14:38:58 +0000 |
commit | 780a5241a93925d81e932db73df46ee749b203b9 (patch) | |
tree | 5d2b5e37c760af0191c2ced00c015d067dd9736a /perlio.c | |
parent | d1144667a1a63a59aa92742530166e5d3591539f (diff) | |
download | perl-780a5241a93925d81e932db73df46ee749b203b9.tar.gz |
Add get_cvn_flags(), which is like get_cv() but takes a length. This
allows symbolic code references with embeded NULs to work.
p4raw-id: //depot/perl@29830
Diffstat (limited to 'perlio.c')
-rw-r--r-- | perlio.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -796,7 +796,7 @@ PerlIO_find_layer(pTHX_ const char *name, STRLEN len, int load) } else { SV * const pkgsv = newSVpvs("PerlIO"); SV * const layer = newSVpvn(name, len); - CV * const cv = get_cv("PerlIO::Layer::NoWarnings", FALSE); + CV * const cv = Perl_get_cvn_flags(aTHX_ STR_WITH_LEN("PerlIO::Layer::NoWarnings"), 0); ENTER; SAVEINT(PL_in_load_module); if (cv) { |