RE: Variable scope in wanted function

2004-10-12 Thread Ron Goral
> -Original Message- > From: Jenda Krynicky [mailto:[EMAIL PROTECTED] > Sent: Monday, October 11, 2004 10:39 AM > To: [EMAIL PROTECTED] > Subject: Re: Variable scope in wanted function > > > From: Gunnar Hjalmarsson <[EMAIL PROTECTED]> > > Ron

Re: Variable scope in wanted function

2004-10-11 Thread Gunnar Hjalmarsson
Ron Goral wrote: Gunnar Hjalmarsson wrote: One possible solution is to move the ProcessFile() function out from FindPath(), so the former is no longer a nested sub: sub ProcessFile { my ($a_files, $file_name) = @_; push @$a_files, $File::Find::name if $_ eq $file_name; } and

RE: Variable scope in wanted function

2004-10-11 Thread Ron Goral
> -Original Message- > From: Gunnar Hjalmarsson [mailto:[EMAIL PROTECTED] > Sent: Sunday, October 10, 2004 6:32 PM > To: [EMAIL PROTECTED] > Subject: Re: Variable scope in wanted function > > > Ron Goral wrote: > > I am having some difficulty with a m

Re: Variable scope in wanted function

2004-10-11 Thread Jenda Krynicky
From: Gunnar Hjalmarsson <[EMAIL PROTECTED]> > Ron Goral wrote: > > I am having some difficulty with a module that is using File::Find. > > The method is below. > > > > The idea is to enter this method feeding it a file name and > > beginning directory and then looking for all occasions of > > $fi

Re: Variable scope in wanted function

2004-10-10 Thread Gunnar Hjalmarsson
Ron Goral wrote: I am having some difficulty with a module that is using File::Find. The method is below. The idea is to enter this method feeding it a file name and beginning directory and then looking for all occasions of $file_name and push those addresses into @a_files. This works fine until I

Variable scope in wanted function

2004-10-10 Thread Ron Goral
Greetings All - I am having some difficulty with a module that is using File::Find. The method is below. The idea is to enter this method feeding it a file name and beginning directory and then looking for all occasions of $file_name and push those addresses into @a_files. This works fine until