Re: how to extract data in specified format to another file

2003-11-06 Thread John W. Krahn
Chandrasekaran Mythili wrote: > > HI, Hello, > I am new to Perl and I need some help regarding tranfering the contents of > one file to other file in specified format using perl. > > the problem is i have one file with data(data is in hex) as follows: > 48 > 30 > 20 > 2E > 2E > 2E > 0 > 0 > 0 >

Re: how to extract data in specified format to another file

2003-10-21 Thread Kevin Pfeiffer
In article <[EMAIL PROTECTED]>, Kevin Pfeiffer wrote: [...] > while () { > > chomp; > print; > last if /^0$/; > } > > print "\n"; Whoops, too fast for my own good (points off for carelessness): while () { chomp; print unless /^0$/; } print "\n"; __END__ But what I'm not

Re: how to extract data in specified format to another file

2003-10-21 Thread Kevin Pfeiffer
In article <[EMAIL PROTECTED]>, Chandrasekaran Mythili wrote: > HI, > > I am new to Perl and I need some help regarding tranfering the contents of > one file to other file in specified format using perl. > > the problem is i have one file with data(data is in hex) as follows: > 48 > 30 > 20 > 2E

how to extract data in specified format to another file

2003-10-21 Thread Mythili, Chandrasekaran (C.)
HI, I am new to Perl and I need some help regarding tranfering the contents of one file to other file in specified format using perl. the problem is i have one file with data(data is in hex) as follows: 48 30 20 2E 2E 2E 0 0 0 i want to copy the contents of this file to another file till 0 is en