Guest User

Untitled

a guest
Jan 23rd, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. #!/usr/bin/perl
  2.  
  3. open (FILE1,'/Users/vgupta/code/data3') or die "can't open";
  4.  
  5. while (<FILE1>) {
  6. chomp;
  7. $input_output_str = "";
  8. if (/Startpoint:/) {
  9. $input_output_str .= $_;
  10. while (<FILE1>) {
  11. last if /Path Group:/;
  12. chomp;
  13. $input_output_str .= $_;
  14. }
  15. print $input_output_str . "\n";
  16. $input_output_str = "";
  17. }
  18.  
  19. }
Add Comment
Please, Sign In to add comment