Every time you interpolate something, the
\ characters will get "evaluated" out of the statement or expression (there is probably a better way to say that, but thats the best I can manage this early in the morning...) .
The
qq{} operator allows to you double quote a string without having to use the double quote
" character. Thus you don't need to escape those particular characters with
\'s.
Try this:
$goodtxt = qq{asterisk -rx "celliax_sendsms line0/$word[3] "Good Passw
+ord""};
Update:
If you actually want a literal
\ in the output, then you'd need to use a double
\\ .
So you might actually want:
$goodtxt = qq{asterisk -rx "celliax_sendsms line0/$word[3] \\"Good Pas
+sword\\""};