in reply to writing the finding result into a file.txt
added my to $dir = "c:/temp";use File::Find; use strict; use warnings; my $dir = "c:/temp"; sub edit { print FILE "$File::Find::name"."\n"; } open(FILE, ">file.txt"); find(\&edit,$dir); close(FILE);
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: writing the finding result into a file.txt
by The Mass (Initiate) on Mar 28, 2012 at 17:16 UTC | |
by clueless newbie (Curate) on Mar 28, 2012 at 17:34 UTC | |
by The Mass (Initiate) on Mar 28, 2012 at 18:10 UTC | |
by nemesdani (Friar) on Mar 29, 2012 at 07:11 UTC |
In Section
Seekers of Perl Wisdom