Please group reply so everyone can help and be helped (and to avoid being accidentally ignored).
> Wiggins , > Thank you for the reply > > > You haven't told us what the difference is, but out > > of curiousity why > > are you using $PATHP to start your search, isn't > > that what $Hme is for? > > Shouldn't $PATHP go before the first 'find'? > > I miss typed the command.It should be. > > system("$PATHP/find $Hme -name \*.txt""); > Any way the PATHP=/usr/bin > and the effective command will be > /usr/bin/find $Hme > If sometime later if I use the same code on a > different system which has different PATH name all I > need to change this PATHP value. And also I used $Hme > because i thought it could be used somewhere by unix > as a variable(although notlikely) . I will change case > as you suggested. I am a newbie and I should do this > stuff fast. So could you explain me how to use > Right, which all makes sense but I am assuming that is why the results were different? The only variables you need to worry about clobbering are other Perl variables, at least as long as you are in your Perl code. perldoc perlvar should provide a (nearly) complete list of them. > File::Find > > perldoc File::Find has details on module usage, and will do a better job of explaining it than I can. You may also want to check out the find2perl script which when fed standard options like you use on your command line will provide you Perl code that should simulate the same search. HTH, http://danconia.org <snip old messages> -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>