Guest User

Untitled

a guest
Jun 19th, 2018
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. use strict;
  2. use warnings;
  3.  
  4. open (FILE1, "<", "mob_db.txt");
  5. while (<FILE1>) {
  6. my $lines = $_;
  7. $lines =~ s/\/\///g;
  8. if ($lines =~ /(.*),(.*),$3/i) {
  9. my $id = $1;
  10. my $monster = $3;
  11. print "$id $monster\n";
  12. open (FILE2, ">>", "monsters.txt");
  13. print FILE2 "$id $monster\n";
  14. }
  15. }
  16. close (FILE1);
  17. close (FILE2);
Add Comment
Please, Sign In to add comment