in reply to Collecting data in a recursive routine.
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Collecting data in a recursive routine.
by Anonymous Monk on Mar 09, 2002 at 02:22 UTC |