NAME
Business::Payroll
SYNOPSIS
use Business::Payroll;
my $file = "payrollIn.xml";
my $string = ""; # If dynamically created or read from STDIN.
my $payroll = Business::Payroll->new();
if ($payroll->error())
{
die $payroll->errorMessage();
}
my $result = $payroll->process(file => $file, string => $string);
my $output = $result->generateXML();
# now you either print it or write to a file.
print $output;
DESCRIPTION
This is the base package for the Business::Payroll Module.
Exported FUNCTIONS
scalar new()
Creates a new instance of the object.
takes:
bool isValid(void)
Returns 0 or 1 to indicate if the object is valid. The error will be available via errorMessage().
Business::Payroll::XML::OutData process(file, string)
Processes the xml data specified in the file or the string. If both
are specified, then the string takes precedence.
Returns an instance of Business::Payroll::XML::OutData which holds
the perl data structure and can be turned into XML by calling it's
generateXML() method.
NOTE
All data fields are accessible by specifying the object and pointing to the data member to be modified on the left-hand side of the assignment. Ex. $obj->variable($newValue); or $value = $obj->variable;
AUTHOR
Xperience, Inc. (mailto:admin@pcxperience.com)
SEE ALSO
perl(1)
1 POD Error
The following errors were encountered while parsing the POD:
- Around line 267:
=back without =over