ACH

 view release on metacpan or  search on metacpan

README  view on Meta::CPAN

	ACH will allow a developer to manipulate specific data fields in an ACH 
	formatted object.

USING ACH
	my $ACH = new ACH;

METHODS
  new
	Creates a new ACH object
	
  printAllData
	Prints all the ACH data

  getData
	Returns the ACH data

CAVEATS
	This package is created for testing purposes only.  It shouldn't be used 
	for production programs or scripts.  There are other commercial products
	out there that may be a more efficient solution for accomplishing your
	goals.

lib/ACH.pm  view on Meta::CPAN

sub new  { 
    my $class = shift;
    my $self  = {};         # allocate new hash for object
    
    bless {
      _achData         => [],
      _achFormats      => \%achFormats,
    }, $class;
}

=head2 printAllData

Prints all the ACH data

=cut

# Print all data from the ACH object
sub printAllData {
  my $self = shift;
  foreach my $item (@{$self->{_achData}}) { # Array of ACH file Sections
    my @achSections = map { defined $_ ? $_ : '' } @{$item};
    foreach my $section (@achSections) { # Array of ACH file Section data
      my %hash = map { defined $_ ? $_ : '' } %{$section};
      foreach my $hashItem (keys (%hash)) { # Hash containing the ACH field name and value
        print "$hashItem: $hash{$hashItem}\n";
      }
    }
  }
}

=head2 getData

Returns the ACH data

=cut



( run in 0.484 second using v1.01-cache-2.11-cpan-de7293f3b23 )