Advertisement
Guest User

Untitled

a guest
Dec 17th, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. #!/bin/perl
  2.  
  3. $filename = 'words';
  4. open(FILE, $filename)
  5. or die "Could not open file '$filename' $!";
  6.  
  7. while ($row = <FILE>) {
  8. chomp $row;
  9. print "$row\n" if "$row" !~ /^([^a]*|[^e]*|[^i]*|[^o]*|[^u]*|[^y]*)$/;
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement