im not a native programer but the little bit i do know is that you can use a "sub routine" to change main variables. you use a "function" by passing variables to it and then returning the results.
i just hate passing all of these variables over to the function.
here is a small example
function $do_it($a, $b, $c, $d, $e, $f, $g)
{
if ($a >= $c) { do this; }
}
sub $do_it()
{
if ($a >= $c) { do this; }
i just dont want to pass the variables every time.
Suggestions?
i just hate passing all of these variables over to the function.
here is a small example
function $do_it($a, $b, $c, $d, $e, $f, $g)
{
if ($a >= $c) { do this; }
}
sub $do_it()
{
if ($a >= $c) { do this; }
i just dont want to pass the variables every time.
Suggestions?