Help for this page

Select Code to Download


  1. or download this
    if (%arg) {                                    #performed only if obj.
    + arguments given
            my %_temp_hash = _return_attr_data();            #returns list
    + of obj. attributes
    ...
                croak "An invalid CD attribute given";        #if not, cro
    +aks with error
            }
        }
    
  2. or download this
    package Music;
    $VERSION = 1.00;
    ...
            keys %_attr_data;
        }
    
  3. or download this
        sub _return_attr_data {
            %_attr_data;
        }
    
  4. or download this
        
        # Retrieve object count
    ...
        my $caller_is_obj = ref($caller);
        my $class = $caller_is_obj || $caller;
        my $self = bless {}, $class;
    
  5. or download this
        if (%arg) {
            my %_temp_hash = _return_attr_data();
            foreach my $argcheck (keys %arg) {
    ...
                croak "An invalid CD attribute given";
            }
        }
    
  6. or download this
            
        foreach my $attrname ( $self->_standard_keys() ) {
            my ($argname) = ($attrname =~ /^_(.*)/);
    ...
    }
    
    1; # Ensure that the module can be succesfully use'd