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); } }
In reply to File::Find and File Handlers by Gizmo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |