Not enough arguements for perl module-Compilation error -


hi have perl script named feed_validator.pl. this, calling perl module named fetch_sequence_vals.pm follows:

my ($ait_hash_ref,$se_hash_ref,$sbc_hash_ref,$db_pack_val_tpb)=fetch_sequnecevals::seqvals(); 

fetch_sequence_vals.pm returns reference of 3 hashes shown below.

return(\%ait_hash,\%se_hash,\%sbc_hash,$db_pack_val_tpb); 

now, passing these 3 hashes input 2 perl modules named sortfeedseq , seqcomparator, shown below.

my $sortfeedtrailer = sortfeedseq::sortfeedseq(     $region,$sortfileout,$sortedtrailerfile,\%ait_hash,\%se_hash,\%sbc_hash);    $compareseq= seqcomparator::comparator(     $region,$sortedtrailerfile,$seq_err,$gap_err,\%ait_hash,\%se_hash,\%sbc_hash); 

when run feed_validator.pl, it's throwing compilation error saying

not enough arguments sortfeedseq::sortfeedseq 

and

not enough arguments seqcomparator::comparator 

i stuck in few days. kindly me in solving error. in advance.

sortfeedseq , comparator each have prototype. sub's prototype dictates syntax of calls it, , violating syntax imposed prototypes of these subs. specifically, aren't passing correct number of arguments subs.

as aren't familiar subs in question, can't tell expect arguments. you'll have consult documentation these modules, or study subs themselves.


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -