Medicare
use Business::Payroll::US::Medicare; my $Medicare = Business::Payroll::US::Medicare->new(); if ($Medicare->error()) { die $Medicare->errorMessage(); }
This module will calculate Medicare Taxes for the US based on internal tables when given a gross amount
Creates a new instance of the object.
gross - floating point > 0 date - YYYYMMDD YTD - Year to date amount paid for this type of tax (float) ) This method will check an argument sent in for validity. returns 0 for no, 1 for yes . NOTE: Only send one argument at a time. If you send all you will not know which one is invalid
Returns the date closest to the given date that is less than or equal to it
This method will return the earliest date in the datatables. Combined with the lastDate method, you can find the date range of the data
This method will return the earliest date in the datatables. Combined with the firstDate method, you can find the date range of the data
Returns an array containing the rate and Cap at the given date for Social Security Taxes. Reutnrs 0 for cap if there isn't one. Returns undef on error.
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;
JT Moree - www.pcxperience.org
perl
2 POD Errors
The following errors were encountered while parsing the POD:
You forgot a '=back' before '=head2'
=back without =over
To install Business::Payroll, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Business::Payroll
CPAN shell
perl -MCPAN -e shell install Business::Payroll
For more information on module installation, please visit the detailed CPAN module installation guide.