FlatFile

 view release on metacpan or  search on metacpan

FlatFile.pm  view on Meta::CPAN

may want your custom class to inherit from
C<FlatFile::Rec>.

=cut

my $classid = "A";
sub new {
  my ($class, %opts) = @_;
  my $self = {recno => 0};

  bless $self => $class;

  # acquire object properties from argument list (%opts)
  # or from class defaults or default defaults, as appropriate.
  # _default will detect missing required values
  # and unknown key names
  for my $source (\%opts, $class->_classvars) {
    $self->_acquire_settings($source, check_keys => 1);
  }

  # TODO: TESTS for this logic

 view all matches for this distribution
 view release on metacpan -  search on metacpan

( run in 0.365 second using v1.00-cache-2.02-grep-82fe00e-cpan-1925d2aa809 )