Advertisement
Guest User

Untitled

a guest
Jun 18th, 2018
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 0.17 KB | None | 0 0
  1. #!/usr/bin/perl
  2.  
  3. open PLIK, "<$ARGV[0]";
  4. while (<PLIK>) {
  5.     if (my ($kod_pocztowy) = m/.*(\d{2}\-\d{3})/) {
  6.         print "$kod_pocztowy\n";
  7.     }
  8. }
  9.  
  10. close PLIK;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement