Running Perl from the shell will become quite complicated for more than simple scripts since the shell implements it's own filtering and scanning for things it might be interested in. You would need to toy alot with backslahes (escaping) In this case, the shell might be interested in the $ character, since it can mean alot of things in various shells. Since I don't know which shell you're using, I can't tell you. Solutions: