Did you see any warnings? Warnings help you spot problematic points in your code.
Perl does not compare strings for equality using ==. Maybe you want to use eq?
Perl does not use + to concatenate strings. Maybe you want to use . ?
In reply to Re^2: Check last character of a string
by Corion
in thread Check last character of a string
by theroninwins
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |