Gizmo has asked for the wisdom of the Perl Monks concerning the following question:
use strict; use warnings; use File::Find; find(\&wanted, "c:\\"); sub wanted { if (/.zip$/) { print "$File::Find::name\n"; open (FH, ">>test.txt"); print FH "$File::Find::name\n"; close (FH); } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: File::Find and File Handlers
by ikegami (Patriarch) on May 11, 2010 at 17:25 UTC | |
by Gizmo (Novice) on May 11, 2010 at 18:32 UTC | |
|
Re: File::Find and File Handlers
by Anonymous Monk on May 11, 2010 at 17:24 UTC | |
|
Re: File::Find and File Handlers
by hotpelmen (Scribe) on May 11, 2010 at 17:29 UTC | |
|
Re: File::Find and File Handlers
by ww (Archbishop) on May 11, 2010 at 17:36 UTC |