Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^2: Checking for Presence of Optional Attribute in Moose Object

by roho (Monsignor)
on Jul 04, 2010 at 07:02 UTC ( #847957=note: print w/ replies, xml ) Need Help??


in reply to Re: Checking for Presence of Optional Attribute in Moose Object
in thread Checking for Presence of Optional Attribute in Moose Object

The sample code is only meant to describe the problem. I want to be able to add the optional attribute value to a display line if the attribute is present. The predicate suggestion by FalseVinylShrub and Your Mother solved the problem. Many thanks.

"Its not how hard you work, its how much you get done."


Comment on Re^2: Checking for Presence of Optional Attribute in Moose Object

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (11)
As of 2014-08-01 12:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Who would be the most fun to work for?















    Results (17 votes), past polls