Re: find2perl output to array Hi,


> Ahh, very good.  Thanks Rob (and Martin from earlier).  I think I 
> understand now.  It calls the wanted sub routine, populates the @files 
> array for each iteration.  Then when that completes the contents of the 
> array @files are printed. . .?
> 
> Matt
> 

you're right, Matt.
the name of the sub is missleading. perldoc File::Find said:

       The wanted function

       The "wanted()" function does whatever verifications you want on
       each file and directory.  Note that despite its name, the "wanted()"
       function is a generic callback function, and does not tell File::Find
       if a file is "wanted" or not.  In fact, its return value is ignored.


-- 
To unsubscribe, e-mail: beginners-unsubscribe@perl.org
For additional commands, e-mail: beginners-help@perl.org
http://learn.perl.org/


