Did you notice that after pressing the preview button you were told " If something looked unlike you expected it to you might need to check out Writeup Formatting Tips". So I must suppose it did look like you expected, shouldn't I?
Update: now that your post has been fixed, I can answer to you...
i.e only test1.dll files are extracting other names with .dll are not coming..You're confusing shell patterns with regexen. Check perldoc perlre. Or else, you may try the find2perl command for a starter.
if i use $name = "/*.dll|*.exe/" to extract my required .exes and .dlls.. the module
As a general rule, you're missing the two most important lines in your program: maybe it won't seem so at first, but make your life easier and help people (not to say perl!) to help you by writing#!/usr/bin/perl use File::Find;
as well.use strict; use warnings;
really, I don't see the need for this wrapper sub. As I don't see the need for many intermediate variables you're putting in many places - since they do not contribute to readability and are at most confusing.sub filefind { # my $aName = @_; # my $file = $File::Find::aName; my @dirs = ($dir); find(\&mysub, @dirs); return @files; }
Two things:if ($_ =~ $name) { push @files, $_; }
In reply to Re: How to extract Req files into some other directory using Modules
by blazar
in thread How to extract Req files into some other directory using Modules
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |