Re: Find regex in Start/Stop segments

2003-06-14 Thread Harry Putnam
Tassilo von Parseval <[EMAIL PROTECTED]> writes: >> That's good. and that is why chomp is an excellent choice for this >> context. Because the OP may not know, or be sure of, that fact. >> The chomp function is custom-designed for cases of uncertainty,.and >> is perfectly safe in cases where the

Re: Find regex in Start/Stop segments

2003-06-13 Thread Tassilo von Parseval
On Fri, Jun 13, 2003 at 03:09:20PM -0700 R. Joseph Newton wrote: > Tassilo von Parseval wrote: > > > > chomp; > > > > I don't think that the entries in @ARGV contain newlines at the end. > > Actually I know they don't. :-) > > > > That's good. and that is why chomp is an excellent choice for

Re: Find regex in Start/Stop segments

2003-06-13 Thread R. Joseph Newton
Tassilo von Parseval wrote: > > chomp; > > I don't think that the entries in @ARGV contain newlines at the end. > Actually I know they don't. :-) > That's good. and that is why chomp is an excellent choice for this context. Because the OP may not know, or be sure of, that fact. The chomp func

Re: Find regex in Start/Stop segments

2003-06-11 Thread John W. Krahn
Tassilo Von Parseval wrote: > > On Tue, Jun 10, 2003 at 11:49:25PM -0700 Harry Putnam wrote: > > > > ## Set a marker to know when we are in a new file > > $fname_for_line_cnt = ''; > > for (@files) { > > chomp; > > I don't think that the entries in @ARGV contain newlines at the end. > Actually

Re: Find regex in Start/Stop segments

2003-06-11 Thread Harry Putnam
Tassilo von Parseval <[EMAIL PROTECTED]> writes: > You don't have to keep track of the line numbers yourself. Perl offers > the special variable $. for that. An awkism I guess, hold over from awk use. Thanks for the tips. > I'd probably write it like that: Quite a lot shorter... and to the poi

Re: Find regex in Start/Stop segments

2003-06-11 Thread Tassilo von Parseval
On Tue, Jun 10, 2003 at 11:49:25PM -0700 Harry Putnam wrote: > I use a homeboy data base technique to keep info about the scripts I > write and other typse of stuff too. Here I'm just dealing with > scripts. > > Its a simple format to enter key information about what a script > does. Looks like

Find regex in Start/Stop segments

2003-06-10 Thread Harry Putnam
I use a homeboy data base technique to keep info about the scripts I write and other typse of stuff too. Here I'm just dealing with scripts. Its a simple format to enter key information about what a script does. Looks like: # Keywords: SOME WORDS # body # body # DATE # && I've written various