logo       

Re: [SPOILER] Perl 'Easy' Quiz of the Week #2005-1: msg#00034

lang.perl.qotw.discuss

Subject: Re: [SPOILER] Perl 'Easy' Quiz of the Week #2005-1

On Mon, Jan 24, 2005 at 10:46:25AM -0500, Bill Smith wrote:

>The actual processing is straightforward, but probably reflects my
>FORTRAN background. The problem of dividing a file into groups of
>similar records is very common. I look forward to learning a more perl
>oriented approach to the more general problem.

Oh dear. I don't have a FORTRAN background, but our programs are
essentially identical in the core...

># .M record for end of last group (if needed)
>print OUTFILE "$prefix.M\n" unless $mflag or !defined $prefix;

By initialising my equivalent of $mflag to 1, I avoided the last part
of that test.

R



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise