RE: line position

2006-11-03 Thread Wagner, David --- Senior Programmer Analyst --- WGO
: Friday, November 03, 2006 14:19 To: beginners@perl.org Subject: Re: line position Wagner, David --- Senior Programmer Analyst --- WGO am Freitag, 3. November 2006 22:16: > If it is only one line and it is record separator is carriage > return as defined by your system, then a simple loo

Re: line position

2006-11-03 Thread D. Bolliger
Wagner, David --- Senior Programmer Analyst --- WGO am Freitag, 3. November 2006 22:16: > If it is only one line and it is record separator is carriage > return as defined by your system, then a simple loop like: Hello David and Tim, The below code is a good example why one should happily

RE: line position

2006-11-03 Thread Tim Wolak
: RE: line position If it is only one line and it is record separator is carriage return as defined by your system, then a simple loop like: while: ( ) { chomp; if ( substr($_,70,2) =~ /(xx|xy|xz)/I ) { # substr starts at zero vs 1

RE: line position

2006-11-03 Thread Wagner, David --- Senior Programmer Analyst --- WGO
Ex Freight 1.408.323.4225x2224 TEL 1.408.323.4449 FAX http://fedex.com/us -Original Message- From: Tim Wolak [mailto:[EMAIL PROTECTED] Sent: Friday, November 03, 2006 11:05 To: Wagner, David --- Senior Programmer Analyst --- WGO; beginners@perl.org Subject: RE: line position The whole thing be

Re: line position

2006-11-03 Thread D. Bolliger
Tim Wolak am Freitag, 3. November 2006 18:37: > All, > > I need to parse lines from a file and at a certain position test to see > if it is what a want, if so I need to grab information from other > positions in the line and drop it into a file. As I have never done > this before, can someone poin

RE: line position

2006-11-03 Thread Tim Wolak
er 03, 2006 12:49 PM To: Tim Wolak; beginners@perl.org Cc: Wagner, David --- Senior Programmer Analyst --- WGO Subject: RE: line position So what makes up a line? CME through the next CME? You can concatenate all the data together if desired( do a chomp first) and check if CME or What denote

RE: line position

2006-11-03 Thread Wagner, David --- Senior Programmer Analyst --- WGO
: line position Here is an example of the lines I am reading in below. This is one continuous line. I need information from positions 70-71, if they match what I want then print that and position 92(also sub-positions C,P,D). Being that I have never had to do this before I'm not sure what t

RE: line position

2006-11-03 Thread Tim Wolak
03BIO 0102000500201E00 000 -Original Message- From: Wagner, David --- Senior Programmer Analyst --- WGO [mailto:[EMAIL PROTECTED] Sent: Friday, November 03, 2006 12:16 PM To: Tim Wolak; beginners@perl.org Subject: RE: line position If you provide some data a

Re: line position

2006-11-03 Thread Tom Smith
Tim Wolak wrote: All, I need to parse lines from a file and at a certain position test to see if it is what a want, if so I need to grab information from other positions in the line and drop it into a file. As I have never done this before, can someone point me in the right direction as to get

RE: line position

2006-11-03 Thread Wagner, David --- Senior Programmer Analyst --- WGO
Programmer Analyst FedEx Freight 1.408.323.4225x2224 TEL 1.408.323.4449 FAX http://fedex.com/us -Original Message- From: Tim Wolak [mailto:[EMAIL PROTECTED] Sent: Friday, November 03, 2006 09:38 To: beginners@perl.org Subject: line position All, I need to parse lines from a file

line position

2006-11-03 Thread Tim Wolak
All, I need to parse lines from a file and at a certain position test to see if it is what a want, if so I need to grab information from other positions in the line and drop it into a file. As I have never done this before, can someone point me in the right direction as to get started? Thanks fo