Help for this page

Select Code to Download


  1. or download this
    use Devel::Examine::Subs;
    
    ...
                               file => $dir,
                               regex => 1,
                            });
    
  2. or download this
    $des->search_replace({
                        exclude => ['one', 'three'],
    ...
                        replace => 'new_template.tpl',
                        extensions => ['pm'],
                     });
    
  3. or download this
    my @code = <DATA>;
    
    ...
        print Dumper $self;
        exit;
    }
    
  4. or download this
    my $des = Devel::Examine::Subs->new({
                                      file => 'file.pm',
                                      cache => 1,
                                   });
    
  5. or download this
    my $objects_aref = $des->objects();
    
  6. or download this
    for my $sub (@$objects_aref){
    
    ...
            print "\n";
        }
    }
    
  7. or download this
    # dir search returns an href. key is the filename of
    # the file the subs were found in, and the values are the
    ...
            ...
        }
    }
    
  8. or download this
    my $aref = $des->all();
    
  9. or download this
    my $aref = $des->has({search => 'this'});
    my $aref = $des->missing({search => 'this'});
    
  10. or download this
    my $files = $des->all({file => 'dir'});
    
    ...
        }
        print "\n";
    }