Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: stream results directly to a file

by mattriff (Chaplain)
on Feb 04, 2005 at 16:44 UTC ( [id://428121]=note: print w/replies, xml ) Need Help??


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!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://428121]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2024-04-18 08:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found