Advertisement
Guest User

Untitled

a guest
Sep 25th, 2017
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. while (<>) {
  2. if ($_=~ /^ATOM/) {
  3.  
  4. @atom_column = split ' +', $_;
  5.  
  6. $atom_c6 = $atom_c6.$atom_column[6];
  7. }
  8.  
  9. print $atom_c6 gives:
  10.  
  11. x.xxx.xxx.xxx.xxx.xxx.xxx.xxx.xxx.xxx.xxx.xxx etc
  12.  
  13. print "/n$atom_c6/n" gives:
  14.  
  15. x.xx
  16.  
  17. x.xx
  18.  
  19. x.xx
  20.  
  21. x.xx etc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement