Try this:
perl -e "print qq/XXX/;"The msdos shell (or whatever they call it nowadays) wants you to use "....". Of course that leads to the problem that you can't use double quotes within the code, so you use an alternative such as qq// instead. Alternate quote-like operators such as qq// are discussed in perlop. When your actual code has embedded double quotes the command shell parses it wrong.
There is some information in this document, if you search its content for the word "quote"
http://technet.microsoft.com/en-us/library/cc723564.aspx
So for *nix environments, wrap your code in '...', and in Win/dos environments, wrap it in "...".
Dave
In reply to Re: command line error
by davido
in thread command line error
by hsfrey
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |