Re: returns 3x the data

2007-04-05 Thread John W. Krahn
Rodrick Brown wrote: > I have a data file with the following about a thousand or so records. > > === XX01 === > 0 > x01 > > > I performing the following match to just pick out the strings > > while() > { > if( $_ =~ m/^=+\s(\w+)/ ) > { >$hostna

Re: returns 3x the data

2007-04-05 Thread Rob Dixon
Rodrick Brown wrote: I have a data file with the following about a thousand or so records. === XX01 === 0 x01 I performing the following match to just pick out the strings while() { if( $_ =~ m/^=+\s(\w+)/ ) { $hostname = lc $1; } print $ho

returns 3x the data

2007-04-05 Thread Rodrick Brown
I have a data file with the following about a thousand or so records. === XX01 === 0 x01 I performing the following match to just pick out the strings while() { if( $_ =~ m/^=+\s(\w+)/ ) { $hostname = lc $1; } print $hostname . "\n"; } some