Re: next if question

2004-04-22 Thread Jeff 'japhy' Pinyan
On Apr 22, rmck said: >bash-2.03$ ./clean.pl data.txt >10 >5201 >8001 >0 >3802 >##The Rest## >Header >20 >80 >bash-2.03$ > >I thought I could do this: > >#!/bin/perl > use strict; > use warnings; > > while( <> ) { #read from stdin one line or record at a time >next if $_ =~ /(^20$|^80$|^Hea

Re: next if question

2004-04-22 Thread rmck
om: James Edward Gray II <[EMAIL PROTECTED]> Sent: Apr 22, 2004 6:59 AM To: rmck <[EMAIL PROTECTED]> Cc: [EMAIL PROTECTED] Subject: Re: next if question On Apr 22, 2004, at 8:54 AM, rmck wrote: > hi, > > I have a while statement that does a next if a match is made against

Re: next if question

2004-04-22 Thread James Edward Gray II
On Apr 22, 2004, at 8:54 AM, rmck wrote: hi, I have a while statement that does a next if a match is made against a reg exprerssion of some numbers. data file: Header 10 20 5201 8001 0 80 3802 #!/bin/perl use strict; use warnings; while( <> ) { #read from stdin on

next if question

2004-04-22 Thread rmck
hi, I have a while statement that does a next if a match is made against a reg exprerssion of some numbers. data file: Header 10 20 5201 8001 0 80 3802 #!/bin/perl use strict; use warnings; while( <> ) { #read from stdin one line or record at a time. next if