i don't think that $#newline means what you think it means. that variable indicates the index of the last element of @newline (if it is non-empty) and has nothing to do with the scalar variable $newline.
try the following instead:
if (substr($newline, -1) eq '.')In reply to RE: RE: Regex to find URLs in a string
by mdillon
in thread Regex to find URLs in a string
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |