This should be very little surprise. When you print out your SQL string, you will find that the ' in don't is read as terminating the quotes around '$_'. DBI placeholders circumvent the problem.
In reply to Re^2: JSON::XS utf8 formatted string will not load into MYSQL json type column
by Corion
in thread JSON::XS utf8 formatted string will not load into MYSQL json type column
by misterperl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |