Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Checking for Presence of Optional Attribute in Moose Object

by Khen1950fx (Canon)
on Jul 04, 2010 at 04:23 UTC ( #847953=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub show_person {
       my $self = shift;
       return $self->name();
    }
    
  2. or download this
    package Person;
    use Moose;
    ...
    
    my $person = Person->new(name => "Bob");
    print $person->show_person(), "\n";
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (7)
As of 2014-12-26 08:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (168 votes), past polls