http://www.perlmonks.org?node_id=932542


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

Replies are listed 'Best First'.
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