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

Re: Binary data structure to moose class.

by tobyink (Canon)
on Jan 02, 2013 at 16:07 UTC ( [id://1011298]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub some_attribute {
      my $self = shift;
      $self->{some_attribute} = shift if @_;
      return $self->{some_attribute};
    }
    
  2. or download this
    has some_attribute => (is => 'rw');
    
  3. or download this
    {
        package Binary::Humax::HmtData;
    ...
    
    my $hmt_data = Binary::Humax::HmtData->new_from_file($path_name);
    my $field    = $hmt_data->start_time;
    
  4. or download this
    {
        package Binary::Humax::HmtData::Trait::Attribute;
    ...
    
    # Attribute introspection
    print Binary::Humax::HmtData->meta->get_attribute('start_time')->unpac
    +k, "\n";
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2024-03-29 00:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found