Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Searching Multiple directories???

by GrandFather (Cardinal)
on Oct 20, 2011 at 02:14 UTC ( #932542=note: print w/ replies, xml ) Need Help??


in reply to Searching Multiple directories???

Try passing an array reference as the value for 'in':

in => \@ARGV

Otherwise the first element is treated as the directory to search and the remaining elements are treated as parameters to find.

True laziness is hard work


Comment on Re: Searching Multiple directories???
Download Code
Re^2: Searching Multiple directories???
by calebcall (Sexton) on Oct 20, 2011 at 02:27 UTC
    Wow, something as simple as a \, that worked perfectly. I wish I knew what exactly that did, guess I need to go research what an array reference is :) Thanks!
      You could consider arming yourself with some of the many wonderful Perl books around as well:
      
      Effective Perl Programming - D'Foy et al
      Conway's OO Perl
      MJD's Higher Order Perl
      
      In particular I would recommend the Perl Cookbook.
      

        You suggest these to someone who is yet to learn about references? They are excellent books, but really not appropriate for a beginner!

        True laziness is hard work

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://932542]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (20)
As of 2014-07-28 19:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (206 votes), past polls