Note the outer braces so $output_string is "private" to these two functions.{ my $output_string; sub DoListCategories { $output_string = ""; ListCategories(@_); } sub ListCategories { #Just as you had it with the change in 1 above } }
HTH, --traveler
In reply to Re: Collecting data in a recursive routine.
by traveler
in thread Collecting data in a recursive routine.
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |