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
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

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
If you provide some data and/or what you have attempted, it will go much farther in getting some assistance. Otherwise the list is guessing at what you are really trying to do. If you have any problems or questions, please let me know. Thanks. Wags ;) David R Wagner Senior Prog