This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if not os.path.exists(self.path): | |
| raise OSError( | |
| errno.ENOENT, os.strerror(errno.ENOENT), self.path | |
| ) | |
| if not os.path.isfile(self.path + self.file): | |
| raise OSError( | |
| errno.ENOENT, os.strerror(errno.ENOENT), self.file | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sub asciiVowelCount { | |
| my $str = shift; | |
| # return error since this is not ascii character set | |
| return -1 if $str =~ /[^[:ascii:]]/; | |
| my $count = 0; | |
| # Loop over each chracter in $str and increment counter if it is a vowel |
NewerOlder