Curly braces {} are used to create a reference to an anonymous hash, so the construct
fields => { $param_string }
Assigns an anonymous hash reference as the value to the hash key "fields". And since there is only one element ($param_string) inside the braces (instead of one or many key=>value pairs) you get an error message.
In reply to Re: passing a variable as a string
by tirwhan
in thread passing a variable as a string
by coldfingertips
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |