If you didn't post as an anonymous monk, I would hav /msg'ed this to you rather than posting a reply: your node is hardly readable at all. Put code tags arounf your code, at least.

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..
if i use $name = "/*.dll|*.exe/" to extract my required .exes and .dlls.. the module
You're confusing shell patterns with regexen. Check perldoc perlre. Or else, you may try the find2perl command for a starter.
#!/usr/bin/perl use File::Find;
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
use strict; use warnings;
as well.
sub filefind { # my $aName = @_; # my $file = $File::Find::aName; my @dirs = ($dir); find(\&mysub, @dirs); return @files; }
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.
if ($_ =~ $name) { push @files, $_; }
Two things:
  1. the topicalizer is just there to be the implicit topic: use it as such or else use explicit variable names,
  2. here you have $_ =~ $name, but $name is a string: what is happening is that perl converts it to a regex. This is not generally what you want and may have an unexpected outcome for you if $name contains charachters that have a regex special meaning (which it does happen to have here, but for a "fortunate" coincidence it doesn't happen to have any "surprising" effect in this case).

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

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.