>-----Original Message----- >From: Chris Stinemetz [mailto:chrisstinem...@gmail.com] >Sent: Friday, June 08, 2012 14:58 >To: lina >Cc: beginners@perl.org >Subject: Re: how to print certain field out > >On Fri, Jun 8, 2012 at 11:44 AM, lina <lina.lastn...@gmail.com> wrote: >> On Sat, Jun 9, 2012 at 12:16 AM, lina <lina.lastn...@gmail.com> wrote: >>> Hi, >>> >>> Here is the to-be-processed file, >>> >>> $ more try >>> # RESIDUE AA STRUCTURE BP1 BP2 ACC N-H-->O O-->H-N >>> N-H-->O O-->H-N TCO KAPPA ALPHA PHI PSI X-CA Y-CA >>> Z-CA >>> 1 174 V 0 0 0 0, 0.0 2,-0.3 0, >>> 0.0 0, 0.0 0.000 360.0 360.0 360.0 137.8 47.8 27.7 76.9 >>> 2 175 H - 0 0 0 2,-0.0 2,-0.3 0, >>> 0.0 0, 0.0 -1.000 360.0-153.6-152.0 146.1 50.8 25.5 78.2 >>> >>> I wish to print the value under the BP1, namely >>> >>> 0 >>> 0 >>> > Chris, Sorry but if you change those three zeros to 0,1,2 you will see that 0 under BP2 is what you are pulling and not the value of BP1 on line 1 and you are getting BP1 on line2. The hyphen throws off your index on this processing...
If you have any questions and/or problems, please let me know. Thanks. Wags ;) David R. Wagner Senior Programmer Analyst FedEx Services 1.719.484.2097 Tel 1.719.484.2419 Fax 1.408.623.5963 Cell http://Fedex.com/us -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/