> [recursive procedure not localizing array passed as parameter] > --- > &buildBranch(@someNodes); > > sub buildBranch() > { > @numNodes = @_; Use my @numNodes. my declares a new private variable each time it is encountered. Without it, @numNodes is the same variable each time the procedure gets called, which is not what you want.
- Recursive subrutines "Dalløkken, Espen"
- Re: Recursive subrutines Me
- Re: Recursive subrutines Aaron Craig