For Programmers: Free Programming Magazines  


Home > Archive > PERL Beginners > December 2006 > Private variables in recursion









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Private variables in recursion
AlanD

2006-12-16, 3:35 am

As a perl newbie, I have a question on a recursive subroutine that searches directories.

Do I need to make the variables private?

If a variable is not private, does it have the same value in each recursion? This is not what I want.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com