Amphiaraus has asked for the wisdom of the Perl Monks concerning the following question:
Can @ARGV work within Perl functions or is it just for script input?
argument_size is 0
Even though 4 arguments were given to function verify_function_params
My output is showing --sub copymerge_functions_pm_init { my $input = $_[0]; my $type = $_[1]; &verify_function_params(2, "copymerge_functions_pm_init", $input, $ +type); <-- 4 arguments sub verify_function_params { my $num = $_[0]; my $function_name = $_[1]; my $input = $_[2]; my $type = $_[3]; my $argument_size = scalar(@ARGV); print "argument_size is $argument_size\n";
argument_size is 0
Even though 4 arguments were given to function verify_function_params
Back to
Seekers of Perl Wisdom