Also perl doesn't much like smart quotes ( “ ”) which means you used something like Word or some other doc editor, where as you should use a text editor (notepad) or a programmers editor (scite / ... padre )
I do use word to work it out but my shell won't allow me to copy and paste into the shell so when I type it into vi (i even set the machine so I could to no avail). they will be changed to single quote lines.