This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
[ID 20001124.001] B exports "walkoptree" but does not define it
[perl5.git] / ext / B / B.pm
index 4512d91..5a064d4 100644 (file)
@@ -9,11 +9,13 @@ package B;
 use XSLoader ();
 require Exporter;
 @ISA = qw(Exporter);
-@EXPORT_OK = qw(minus_c ppname
-               class peekop cast_I32 cstring cchar hash threadsv_names
-               main_root main_start main_cv svref_2object opnumber amagic_generation
-               walkoptree walkoptree_slow walkoptree_exec walksymtable
-               parents comppadlist sv_undef compile_stats timing_info init_av);
+@EXPORT_OK =
+    qw(minus_c ppname save_BEGINs
+       class peekop cast_I32 cstring cchar hash threadsv_names
+       main_root main_start main_cv svref_2object opnumber amagic_generation
+       walkoptree_slow walkoptree_exec walksymtable
+       parents comppadlist sv_undef compile_stats timing_info
+       begin_av init_av end_av);
 sub OPf_KIDS ();
 use strict;
 @B::SV::ISA = 'B::OBJECT';
@@ -184,7 +186,7 @@ sub walksymtable {
        *glob = "*main::".$prefix.$sym;
        if ($sym =~ /::$/) {
            $sym = $prefix . $sym;
-           if ($sym ne "main::" && &$recurse($sym)) {
+           if ($sym ne "main::" && $sym ne "<none>::" && &$recurse($sym)) {
                walksymtable(\%glob, $method, $recurse, $sym);
            }
        } else {
@@ -530,6 +532,8 @@ This method returns TRUE if the GP field of the GV is NULL.
 
 =item CvFLAGS
 
+=item const_sv
+
 =back
 
 =head2 B::HV METHODS