Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

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?
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 examining the Monastery: (6)
As of 2015-07-31 03:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (274 votes), past polls