To you funcion work the variables should be declared inside your function, and to go back in the directory structure you shoud exit the function.
If you are doing that, please, send your code here because I know this resources works prety good becouse I�he used it by my self a couple of times. ---- Original message ---- >Date: Wed, 10 Oct 2001 12:20:59 +0530 >From: Veeraraju_Mareddi <[EMAIL PROTECTED]> >Subject: Calling function in the same fuction :Recursion >To: "'[EMAIL PROTECTED]'" <perl- [EMAIL PROTECTED]> >Cc: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]> > >Dear All > >I am trying to call a function from the function itself.But after ending the >function it should be having previous values in the calling function, But >the called function ,being the same function is modifying the some variable >values. > > >Ex: > >Suppose I am searching for a file in root dierectory. > >it reads the DIR and get all entries into an array.In array ,again it >reads all files, and if the element is directory it should call the same >fuction (RECURSION). and so. > >But in doing so Once it went to some sub directories ,Its not coming back >and exiting. >That means it goes for first directory and then search and if it is again a >directory ,it goes inside. But not coming back.. > > >Please suggest me to achieve this.. > >I want to run through directory structure.. > > >Thaking you Very much.. > >With Best Regards, >RajuVM > > >_______________________________________________ >Perl-Win32-Admin mailing list >[EMAIL PROTECTED] >http://listserv.ActiveState.com/mailman/listinfo/perl-win32- admin _______________________________________________ Perl-Win32-Admin mailing list [EMAIL PROTECTED] http://listserv.ActiveState.com/mailman/listinfo/perl-win32-admin
