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
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
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
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
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
: 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
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
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
-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
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
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.
--
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 (
12 matches
Mail list logo