in reply to passing a variable as a string
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: passing a variable as a string
by coldfingertips (Pilgrim) on Feb 28, 2006 at 17:24 UTC |