|
|
| There's more than one way to do things | |
| PerlMonks |
Re: Interpolating variables in JSON stringby roboticus (Canon) |
| on Jan 29, 2013 at 11:49 UTC ( #1015867=note: print w/ replies, xml ) | Need Help?? |
|
j0se: I agree with the previous posters. However, it looks like you're just forgetting to put quotes around $USERNAME and $API_KEY. JSON is going to want quotes around string values, and you're just dropping them in without the quotes. You probably need:
So while this may get you going for now, just remember that it'll come back to bite you if you're not careful. Hence, the aforementioned suggestions. ...roboticus When your only tool is a hammer, all problems look like your thumb.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||