Advertisement
extrn

Untitled

Mar 25th, 2018
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 0.28 KB | None | 0 0
  1. use strict;
  2. use warnings;
  3. use feature 'say';
  4.  
  5. my $filename = 'chapter1.txt';
  6. die "Не могу открыть '$filename' $!" unless open(my $fh, $filename);
  7.  
  8. while (<$fh>) {
  9.     chomp;
  10.     my @fields = split /:/;
  11.     say if @fields < 8 || $fields[7] eq '?';
  12. }
  13.  
  14. close $fh;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement