I am trying to use the following script to find where words were not capitalized at the begining of a new scentence. However I cannot figure out how to check if the very first word is capitalized or not. Anyone know how I could modify this code:
#!/usr/bin/perl -w
use strict:
@ARGV = '/Perl/LearningPerl/Test';
while(<>){
if(/\.\s+([a-z]+)/){
print "$1 is not capitalized\n";
}
}