# replace $myline with your variable or $_ if($myline !~ /\.$/){ $myline .= ".\n"; }
Why do you put the newline back on? Are you sure you want to do that, considering you don't put it back on for the lines without a period?
If this helps, sign up! Perl Monks welcomes new monks. Post a reply if you need more help.
John J Reiser
newrisedesigns.com
In reply to Re: (nrd) Adding periord to the end of line
by newrisedesigns
in thread Adding periord to the end of line
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |