Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Binary data structure to moose class.

by tobyink (Abbot)
on Jan 02, 2013 at 16:07 UTC ( #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
Node Status?
node history
Node Type: note [id://1011298]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (9)
As of 2015-07-31 01:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (274 votes), past polls