I'm a newbie in perl and I'm trying to execute an operating system command from a Perl script.

The operating system command is executed with [`IPC::Open3`](https://metacpan.org/module/IPC%3a%3aOpen3), and the command is like

```
$cmd = "mycommand --add \"condition LIKE '%TEXT%' \"";

```

This command is supposed to insert the string contained after the "add" into a database.

The problem is that it inserts the record in the database without the single quotes around `%TEXT%`, like this:

```
condition LIKE %TEXT%

```

If I execute the command at a command prompt it inserts the string correctly.

How should I format the double and single quotes so that it is inserted in the database correctly?

Thanks for the help