Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Can a Perl module "inspect" itself and provide details about methods and parameters?

by stevieb (Canon)
on Sep 21, 2019 at 21:50 UTC ( [id://11106516]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use warnings;
    use strict;
    ...
            print "\t$sub\n";
        }
    }
    
  2. or download this
    lib/Mock/Sub/Child.pm:
        new
    ...
        mocked_state
        DESTROY
        __end
    
  3. or download this
    use warnings;
    use strict;
    ...
        #say "\tsub code:";
        #say "\t\t$_" for @{ $sub->code };
    }
    
  4. or download this
    import
        start line:   14
    ...
    mock
        start line:   27
        end line:     61
    
  5. or download this
    use warnings;
    use strict;
    ...
    my $subs = $des->all;
    
    print "$_\n" for @$subs;
    
  6. or download this
    BEGIN
    _sub_names
    ...
    _generate_entry
    _levels
    _log_only
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11106516]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (3)
As of 2024-04-25 23:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found