Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

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 making s'mores by the fire in the courtyard of the Monastery: (17)
As of 2015-10-13 17:44 GMT
Find Nodes?
    Voting Booth?

    Does Humor Belong in Programming?

    Results (311 votes), past polls