ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I cant send $c because in the other 500 locations that SumSub is called it already uses %c. If I would have written the code I would have referenced the Hash passing $c. But I have to use what is already there.
It's not quite clear how this sub is already being called, but you could use pop/shift as defined here: http://search.cpan.org/~nwclark/perl...erl_Functions,
the only problem is knowing when to do this and when not, if the current 500 calls do not pass the last param value ...
Possibly check if scalar(@_) is odd or even...