The script works for me. How exactly are you running the script using Padre and what is your OS and perl version ?
In reply to Re: Syntax error "." by poj in thread Syntax error "." by Newbiez