How to pass a a string variable as “query” for get Manager call?
问题 I'm trying to make this simple call: DataB::testTable::Manager->get_testTable( query => [ id => $id, name => $name ] ) which works perfectly fine. But is it possible to pass a variable for the query. Something like: $query = "id => $id , name => $name"; DataB::testTable::Manager->get_testTable( query => [ $query ] ); or something similar. 回答1: Strings and complex data structures are completely different things. Strings are a sequence of codepoints/graphemes/bytes (depends how you're looking).