Help for this page

Select Code to Download


  1. or download this
        eval "sub ${caller_package}::DEBUG () { $debug_value }";
    
  2. or download this
            # see if said method wasn't just imported from elsewhere
            my $glob = do { no strict 'refs'; \*{$sym} };
    ...
            # in 5.005 this flag is not exposed via B, though it exists
            my $imported_cv = eval { B::GVf_IMPORTED_CV() } || 0x80;
            next if $o->GvFLAGS & $imported_cv;
    
  3. or download this
        eval "sub DEBUG () { $debug_value }";
        *{ join('::', $caller_package, 'DEBUG') } = \&DEBUG;