in reply to stream results directly to a file

Instead of in(), use start() and then match() to iterate over it one at a time.

use File::Find::Rule; my $rule = File::Find::Rule->new; $rule->file; $rule->name( '*.tmp' ); $rule->start($startdir); while (my $file = $rule->match) { print "$file\n"; }

Replies are listed 'Best First'.
Re^2: stream results directly to a file
by bengmau (Beadle) on Feb 04, 2005 at 16:49 UTC
    beauty. thanks!