Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

Re: Searching Multiple directories???

by GrandFather (Sage)
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
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

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2016-05-26 02:56 GMT
Find Nodes?
    Voting Booth?