Guest User

Untitled

a guest
Jan 19th, 2018
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. open INI, "pc.txt" or die "Can't open pc.txt. Stopped";
  2.  
  3. @lines = <INI>;
  4.  
  5. close INPUT;
  6.  
  7. #print "@lines";
  8. foreach (@lines)
  9. {
  10. if($_ eq "[field]")
  11. {
  12. print $_;
  13. }
  14. }
  15.  
  16.  
  17. pc.txt contains
  18.  
  19. [field]
  20. name=selective
  21. length=2
Add Comment
Please, Sign In to add comment