nithin February 2016

Not enough arguements for perl module-Compilation error

Hi I have a Perl script named From this, I am calling a Perl module named as follows:

my ($AIT_hash_ref,$SE_hash_ref,$SBC_hash_ref,$db_pack_val_tpb)=fetch_sequneceVals::seqVals(); returns the reference of three hashes as shown below.


Now, I am passing these three hashes as input for two Perl modules named SortFeedSeq and SeqComparator, as shown below.

my $sortfeedtrailer = SortFeedSeq::sortfeedseq(
my $compareseq= SeqComparator::comparator(

When I run, it's throwing a compilation error saying

Not enough arguments for SortFeedSeq::sortfeedseq


Not enough arguments for SeqComparator::comparator

I am stuck in this from few days. Kindly someone help me in solving the error. Thanks in advance.


ikegami February 2016

sortfeedseq and comparator each have a prototype. A sub's prototype dictates the syntax of calls to it, and you are violating the syntax imposed by the prototypes of these subs. Specifically, you aren't passing the correct number of arguments to the subs.

As we aren't familiar with the subs in question, we can't tell you what the expect for arguments. You'll have to consult the documentation for these modules, or study the subs themselves.

Post Status

Asked in February 2016
Viewed 3,728 times
Voted 8
Answered 1 times


Leave an answer