You could dump the package's symbol table at various places, for example before and after using Class:MethodMaker:

package class; use Data::Dumper; BEGIN { $Data::Dumper::Sortkeys = 1; print 'Before "use Class::MethodMaker": '; print Dumper(\%{*class::}); } use Class::MethodMaker get_set => [ qw/ field_1 field_2 field_3 field_4 field_5 +/] , new_with_init => 'new', new_hash_init => 'hash_init' ; BEGIN { print 'After "use Class::MethodMaker": '; print Dumper(\%{*class::}); } # ...

The output

Before "use Class::MethodMaker": $VAR1 = { 'BEGIN' => *class::BEGIN, 'Dumper' => *class::Dumper }; After "use Class::MethodMaker": $VAR1 = { 'BEGIN' => *class::BEGIN, 'Dumper' => *class::Dumper, 'clear_field_1' => *class::clear_field_1, 'clear_field_2' => *class::clear_field_2, 'clear_field_3' => *class::clear_field_3, 'clear_field_4' => *class::clear_field_4, 'clear_field_5' => *class::clear_field_5, 'field_1' => *class::field_1, 'field_1_isset' => *class::field_1_isset, 'field_1_reset' => *class::field_1_reset, 'field_2' => *class::field_2, 'field_2_isset' => *class::field_2_isset, 'field_2_reset' => *class::field_2_reset, 'field_3' => *class::field_3, 'field_3_isset' => *class::field_3_isset, 'field_3_reset' => *class::field_3_reset, 'field_4' => *class::field_4, 'field_4_isset' => *class::field_4_isset, 'field_4_reset' => *class::field_4_reset, 'field_5' => *class::field_5, 'field_5_isset' => *class::field_5_isset, 'field_5_reset' => *class::field_5_reset, 'get_field_1' => *class::get_field_1, 'get_field_2' => *class::get_field_2, 'get_field_3' => *class::get_field_3, 'get_field_4' => *class::get_field_4, 'get_field_5' => *class::get_field_5, 'hash_init' => *class::hash_init, 'isa' => *class::isa, 'new' => *class::new, 'set_field_1' => *class::set_field_1, 'set_field_2' => *class::set_field_2, 'set_field_3' => *class::set_field_3, 'set_field_4' => *class::set_field_4, 'set_field_5' => *class::set_field_5 };

suggests that the methods are being set up at use time of the module Class::MethodMaker.


In reply to Re: when is *_reset methods of Class::MethodMaker gets created by almut
in thread when is *_reset methods of Class::MethodMaker gets created by siraj

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.