- 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
}
}
- or download this
package Music;
$VERSION = 1.00;
...
keys %_attr_data;
}
- or download this
sub _return_attr_data {
%_attr_data;
}
- or download this
# Retrieve object count
...
my $caller_is_obj = ref($caller);
my $class = $caller_is_obj || $caller;
my $self = bless {}, $class;
- or download this
if (%arg) {
my %_temp_hash = _return_attr_data();
foreach my $argcheck (keys %arg) {
...
croak "An invalid CD attribute given";
}
}
- or download this
foreach my $attrname ( $self->_standard_keys() ) {
my ($argname) = ($attrname =~ /^_(.*)/);
...
}
1; # Ensure that the module can be succesfully use'd