Re: File::Find again

2007-03-26 Thread Dave Gray
On 3/25/07, Alan [EMAIL PROTECTED] wrote: On Sunday 25 March 2007 18:14, Matt Herzog wrote: This is all I needed. I swear I had /($searchstring)/; in there at some point before . . . so if I pass it -s \.properties$ at the command line, it works as expetcted. Nice. That might be a

Command line fed to Perl was Re: File::Find again

2007-03-26 Thread Alan
On Monday 26 March 2007 07:32, Dave Gray wrote: On 3/25/07, Alan [EMAIL PROTECTED] wrote: On Sunday 25 March 2007 18:14, Matt Herzog wrote: This is all I needed. I swear I had /($searchstring)/; in there at some point before . . . so if I pass it -s \.properties$ at the

Re: Command line fed to Perl was Re: File::Find again

2007-03-26 Thread Jenda Krynicky
From: Alan [EMAIL PROTECTED] It's a different case here ie not a var, instead it's a command line that's entered into a shell, such command line being passed to Perl. And the command needs to make it to Perl without getting altered before it gets to Perl. -s

Re: File::Find again

2007-03-25 Thread Randal L. Schwartz
Mumia == Mumia W mumia.w.18.spam writes: Mumia On 03/23/2007 04:59 PM, Matt Herzog wrote: Hello All. I can see why people hate this module but I can't seem to let go. [...] Mumia It's not really letting go if you use the File::Find::Rule module which uses Mumia File::Find behind the

Re: File::Find again

2007-03-25 Thread Matt Herzog
On Fri, Mar 23, 2007 at 03:09:31PM -0700, Wagner, David --- Senior Programmer Analyst --- WGO wrote: -Original Message- From: Matt Herzog [mailto:[EMAIL PROTECTED] Sent: Friday, March 23, 2007 15:00 To: Begin Perl Subject: File::Find again Hello All. I can see why

Re: File::Find again

2007-03-25 Thread Alan
: File::Find again Hello All. I can see why people hate this module but I can't seem to let go. I point this script at a deep dir structure that has java .properties files sprinkled throughout it. Right now when I have my regex hard coded in the file, (.properties$) the search

答复: File::Find again

2007-03-25 Thread Jeff Pang
return unless /($searchstring)/; As I've said, return unless /\Q$searchstring/; # using '\Q' to disable pattern metacharacters is this maybe better? -邮件原件- 发件人: Matt Herzog [mailto:[EMAIL PROTECTED] 发送时间: 2007年3月26日 9:14 收件人: Begin Perl 主题: Re: File::Find again On Fri

File::Find again

2007-03-23 Thread Matt Herzog
Hello All. I can see why people hate this module but I can't seem to let go. I point this script at a deep dir structure that has java .properties files sprinkled throughout it. Right now when I have my regex hard coded in the file, (.properties$) the search works fine. I need to be able to use

RE: File::Find again

2007-03-23 Thread Wagner, David --- Senior Programmer Analyst --- WGO
-Original Message- From: Matt Herzog [mailto:[EMAIL PROTECTED] Sent: Friday, March 23, 2007 15:00 To: Begin Perl Subject: File::Find again Hello All. I can see why people hate this module but I can't seem to let go. I point this script at a deep dir structure that has java

Re: File::Find again

2007-03-23 Thread Jeff Pang
I need to be able to use the variable $searchstring at the command line. Is this even possible? Surely you can. Don't forget to put a \Q before the $searchstring. (from perldoc perlre: \E end case modification (think vi) \Q quote (disable) pattern

Re: File::Find again

2007-03-23 Thread Mumia W.
On 03/23/2007 04:59 PM, Matt Herzog wrote: Hello All. I can see why people hate this module but I can't seem to let go. [...] It's not really letting go if you use the File::Find::Rule module which uses File::Find behind the scenes. I have a feeling that you'll like File::Find::Rule. --

Re: File::Find again

2007-03-23 Thread Alan
On Friday 23 March 2007 14:59, Matt Herzog wrote: [ . . ] in the file, (.properties$) the search works fine. I need to be able to use the variable $searchstring at the command line. Is this even possible? If [ . . ] return unless ($_ =~ /\.properties$/); [ . . ] if (