Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Changing the Class Name of a Moose Instance

by jandrew (Hermit)
on Oct 03, 2012 at 15:37 UTC ( #997078=perlquestion: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    package MyClass;
    use Moose;
    ...
    $business_associate->set_name( 'Miyagi' );
    print "Hello " . $business_associate->get_respectful_name . "\n";
    1;
    
  2. or download this
    No name is available at MooseClassName.pl line 22
        Respect::get_respectful_name
    ...
         MooseClassName.pl line 39.
    Hello 
    Hello Miyagi - San
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://997078]
Approved by davido
Front-paged by davido
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (12)
As of 2014-07-29 09:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (213 votes), past polls