I have a subroutine (in Perl) that needs to make a call to another one transfering its arguments and also adding a string. I have tried something like this (but I'm looking for THE answer, not just correcting this ...):
sub TestBase($)
{
print @_;
return 'hard processed string';
}
sub Test($)
{
print @_;
return TestBase(@_, 'Filename.txt');
}
This one fails with "Too many arguments for main::TestBase" (all these years and I still use cmd.com, no easy copy-paste in this case!).