{"action":"created","issue":{"url":"https://api.github.com/repos/hoelzro/inline-lua/issues/10","labels_url":"https://api.github.com/repos/hoelzro/inline-lua/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/hoelzro/inline-lua/issues/10/comments","events_url":"https://api.github.com/repos/hoelzro/inline-lua/issues/10/events","html_url":"https://github.com/hoelzro/inline-lua/issues/10","id":102650874,"number":10,"title":"can't apply to string valued variable?","user":{"login":"unhandyandy","id":2363767,"avatar_url":"https://avatars.githubusercontent.com/u/2363767?v=3","gravatar_id":"","url":"https://api.github.com/users/unhandyandy","html_url":"https://github.com/unhandyandy","followers_url":"https://api.github.com/users/unhandyandy/followers","following_url":"https://api.github.com/users/unhandyandy/following{/other_user}","gists_url":"https://api.github.com/users/unhandyandy/gists{/gist_id}","starred_url":"https://api.github.com/users/unhandyandy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unhandyandy/subscriptions","organizations_url":"https://api.github.com/users/unhandyandy/orgs","repos_url":"https://api.github.com/users/unhandyandy/repos","events_url":"https://api.github.com/users/unhandyandy/events{/privacy}","received_events_url":"https://api.github.com/users/unhandyandy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-08-23T19:34:46Z","updated_at":"2015-08-23T19:48:02Z","closed_at":null,"body":"Am I right in thinking that \"use Inline Lua => \" cannot be applied to a string valued variable?  I find the following function works,\r\n````\r\nsub readLua{\r\n    use Inline Lua => \"function luaFunction (x,y) return x * y end\";\r\n    return &luaFunction(2,3); }\r\n```\r\nbut the next one does not.\r\n```\r\nsub readLua{\r\n    my $funstr = \"function luaFunction (x,y) return x * y end\";\r\n    use Inline Lua => $funstr;\r\n    return &luaFunction(2,3); }\r\n```"},"comment":{"url":"https://api.github.com/repos/hoelzro/inline-lua/issues/comments/133909818","html_url":"https://github.com/hoelzro/inline-lua/issues/10#issuecomment-133909818","issue_url":"https://api.github.com/repos/hoelzro/inline-lua/issues/10","id":133909818,"user":{"login":"hoelzro","id":107804,"avatar_url":"https://avatars.githubusercontent.com/u/107804?v=3","gravatar_id":"","url":"https://api.github.com/users/hoelzro","html_url":"https://github.com/hoelzro","followers_url":"https://api.github.com/users/hoelzro/followers","following_url":"https://api.github.com/users/hoelzro/following{/other_user}","gists_url":"https://api.github.com/users/hoelzro/gists{/gist_id}","starred_url":"https://api.github.com/users/hoelzro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hoelzro/subscriptions","organizations_url":"https://api.github.com/users/hoelzro/orgs","repos_url":"https://api.github.com/users/hoelzro/repos","events_url":"https://api.github.com/users/hoelzro/events{/privacy}","received_events_url":"https://api.github.com/users/hoelzro/received_events","type":"User","site_admin":false},"created_at":"2015-08-23T19:48:02Z","updated_at":"2015-08-23T19:48:02Z","body":"@unhandyandy You may want to check out the Inline documentation here: https://metacpan.org/pod/distribution/Inline/lib/Inline.pod"}}