Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
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 avoiding work at the Monastery: (8)
As of 2014-08-23 02:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (171 votes), past polls