a newbie question. i've got two sub-routines i.e, sub1, sub2.
sub1 does some file updating and sub2 does some HTML printing. question... how do you make sub2 run once sub1 has finished?
here's a snippet of my code.
if ($var == $anothervar) {
&sub2;
}
else {
&sub1;
&sub2;
}
when i run this code... after finishing sub1, the browser doesn't output sub2's purpose.
sub1 does some file updating and sub2 does some HTML printing. question... how do you make sub2 run once sub1 has finished?
here's a snippet of my code.
if ($var == $anothervar) {
&sub2;
}
else {
&sub1;
&sub2;
}
when i run this code... after finishing sub1, the browser doesn't output sub2's purpose.