in reply to $dollers %percents and all other things (/) slashed

Why don't you just change your line to the following:
print THEOTHERSCRIPT "print qw($userinput"; ),"\n";
Or, you could using single quotes.

Cheers,
Ovid

Update: That's twice today that I have posted to quickly. The quote mark shouldn't be in $userinput.

Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.

Replies are listed 'Best First'.
Re: (Ovid) Re: $dollers %percents and all other things (/) slashed
by rlk (Pilgrim) on Dec 11, 2000 at 23:27 UTC
    {Update: I read the parent too quickly. Ovid, your code doesn't work. It parses to print STRING; ), STRING;, does it not?}

    Well, that doesn't solve the question of $userinput containing something like I am so 1337!) && `rm -rf /` && print q(

    At minimum, with q() or single quotes, whatever character(s) close the quotes have to be escaped.

    --
    Ryan Koppenhaver, Aspiring Perl Hacker
    "I ask for so little. Just fear me, love me, do as I say and I will be your slave."