Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^2: Enumerating all attributes of a Moo object

by zwon (Abbot)
on Jul 09, 2013 at 16:51 UTC ( #1043353=note: print w/replies, xml ) Need Help??


in reply to Re: Enumerating all attributes of a Moo object
in thread Enumerating all attributes of a Moo object

Note, that this will not show attributes that are not set:
use 5.010; use strict; use warnings; { package Foo; use Moose; has bar => ( is => 'rw' ); has baz => ( is => 'rw' ); } my $foo = Foo->new( bar => 1 ); say join "\n", keys %$foo; __END__ bar

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1043353]
help
Chatterbox?
[marioroy]: kcott Magical.
[kcott]: marioroy, thanks also.
[marioroy]: kcott some time ago, somebody posted about slow logging. I forgot the post. I believed you had replied to it.
[marioroy]: ... among many workers. Somebody had ask how.

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2017-08-18 08:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Who is your favorite scientist and why?



























    Results (297 votes). Check out past polls.

    Notices?