Below is the example of codes:
$test1 = "abc";
$test2 = "def";
function($test1,$test2);
sub function($){
--What should I do here to get the `$test1` and `$test2`--
--Is it possible?--
}
Expected Result:
Able to grab $test1
and $test2
inside the sub function by passing through the function($test1,$test2)
.
Thanks for the comments ,teaching and answers.