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
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
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
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
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
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
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