The Mass has asked for the wisdom of the Perl Monks concerning the following question:
but when I run the code above , I don't get anything at file.txtuse File::Find; $dir = "c:/folder"; sub edit { print "$File::Find::name"."\n"; } $s = find(\&edit,$dir); open(FILE, ">file.txt"); print FILE $s; close(FILE);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: writing the finding result into a file.txt
by nemesdani (Friar) on Mar 28, 2012 at 09:19 UTC | |
|
Re: writing the finding result into a file.txt
by clueless newbie (Curate) on Mar 28, 2012 at 11:29 UTC | |
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 | |
|
Re: writing the finding result into a file.txt
by The Mass (Initiate) on Mar 28, 2012 at 18:22 UTC |