in reply to Re^3: strings to json
in thread strings to json
Are you seriously going to argue the inputs are constant? If you really believe that, why did you post such stupid solutions? You should have suggested
use strict; use warnings; print '{ "mike": 20, "johndeo@test.com": "test" }';
But no, the OP used variables for a reason. It's because they are variable. And because of that, your first solution is buggy.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: strings to json
by Anonymous Monk on Jun 25, 2017 at 03:44 UTC | |
by ikegami (Patriarch) on Jun 25, 2017 at 03:46 UTC | |
by Anonymous Monk on Jun 25, 2017 at 07:15 UTC |