Re: Help with end of line charaters

2004-02-23 Thread R. Joseph Newton
Rob Dixon wrote: > > OK, but you still haven't solved the problem. Joseph's intent was > to show you how to examine the raw data, but I doubt he would > expect you to process a text file in that way. > ... > I really hope that this doesn't fall on deaf ears. So many > people grab hold of anything

Re: Help with end of line charaters

2004-02-23 Thread R. Joseph Newton
Westcott Andrew-AWESTCO1 wrote: > Hi, > > You have solved my problem, the key was in your script. I had not been > reading the file in binary mode and so the different LF and CR where getting > lost. > > Thanks > > I did run the script you sent which was very help full and I will store that > away

Re: Help with end of line charaters

2004-02-23 Thread R. Joseph Newton
Rob Dixon wrote: > R. Joseph Newton wrote: > > > > Maybe you should do a binary/text dump of the file. Chose a set of meanguful > > printing characters to print as character, printi anything outside of this range > > as hex. Something like: > > I like that: 'meanguful'. I shall have to try to fi

Re: Help with end of line charaters

2004-02-23 Thread Rob Dixon
Andrew Westcott wrote: > > You have solved my problem, the key was in your script. I had not been > reading the file in binary mode and so the different LF and CR where getting > lost. > > Thanks > > I did run the script you sent which was very help full and I will store that > away as I'm sure it

RE: Help with end of line charaters

2004-02-23 Thread Westcott Andrew-AWESTCO1
ECTED] Subject: Re: Help with end of line charaters Westcott Andrew-AWESTCO1 wrote: > Hi, > > I'm new to perl but need to write a script that takes a file and formats > lines. > > The file has to 2 fields that are tab separated and each field is made up of > items separated by

Re: Help with end of line charaters

2004-02-23 Thread Rob Dixon
David Le Blanc wrote: > > > use Dumper::HexDump; That's Data::HexDump :) > print HexDump( $whole_durn_thang ); > > Makes for very pretty output, if you like that sort of thing.. > > You may need to put Dumper::HexDump from CPAN > (as in : > % perl -MCPAN -e shell > cpan> install Dumper::HexDu

Re: Help with end of line charaters

2004-02-23 Thread Rob Dixon
R. Joseph Newton wrote: > > Maybe you should do a binary/text dump of the file. Chose a set of meanguful > printing characters to print as character, printi anything outside of this range > as hex. Something like: I like that: 'meanguful'. I shall have to try to fir it into my conversation :) >

Re: Help with end of line charaters

2004-02-23 Thread Rob Dixon
Andrew Westcott wrote: > > I'm new to perl but need to write a script that takes a file and formats > lines. > > The file has to 2 fields that are tab separated and each field is made up of > items separated by some type of linefeed character. The end of the second > field is identified by another

RE: Help with end of line charaters

2004-02-23 Thread David le Blanc
> -Original Message- > From: R. Joseph Newton [mailto:[EMAIL PROTECTED] > Sent: Monday, 23 February 2004 4:50 PM > To: Westcott Andrew-AWESTCO1 > Cc: '[EMAIL PROTECTED]' > Subject: Re: Help with end of line charaters > > Westcott Andrew-AWESTCO1 wrote:

Re: Help with end of line charaters

2004-02-22 Thread R. Joseph Newton
Westcott Andrew-AWESTCO1 wrote: > Hi, > > I'm new to perl but need to write a script that takes a file and formats > lines. > > The file has to 2 fields that are tab separated and each field is made up of > items separated by some type of linefeed character. The end of the second > field is identi

RE: Help with end of line charaters

2004-02-22 Thread David le Blanc
> From: Westcott Andrew-AWESTCO1 [mailto:[EMAIL PROTECTED] > Sent: Sunday, 22 February 2004 10:08 PM > To: '[EMAIL PROTECTED]' > Subject: Help with end of line charaters > > Hi, > > I'm new to perl but need to write a script that takes a file > an

Help with end of line charaters

2004-02-22 Thread Westcott Andrew-AWESTCO1
Hi, I'm new to perl but need to write a script that takes a file and formats lines. The file has to 2 fields that are tab separated and each field is made up of items separated by some type of linefeed character. The end of the second field is identified by another type of linefeed character.