Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
thanks®ards,#!/usr/bin/perl use File::Find; $dir = "."; $name = "test1.dll"; filefind($name); sub filefind { # my $aName = @_; # my $file = $File::Find::aName; my @dirs = ($dir); find(\&mysub, @dirs); return @files; } print "files are @files\n"; sub mysub { if ($_ =~ $name) { push @files, $_; } }
fixed formatting by holli
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to extract Req files into some other directory using Modules
by holli (Abbot) on Aug 03, 2005 at 10:19 UTC | |
|
Re: How to extract Req files into some other directory using Modules
by blazar (Canon) on Aug 03, 2005 at 10:12 UTC | |
|
Re: How to extract Req files into some other directory using Modules
by anonymized user 468275 (Curate) on Aug 03, 2005 at 10:21 UTC | |
by blazar (Canon) on Aug 03, 2005 at 10:38 UTC | |
|
Re: How to extract Req files into some other directory using Modules
by Tomtom (Scribe) on Aug 03, 2005 at 10:22 UTC |