{"action":"created","issue":{"url":"https://api.github.com/repos/ggreer/the_silver_searcher/issues/986","repository_url":"https://api.github.com/repos/ggreer/the_silver_searcher","labels_url":"https://api.github.com/repos/ggreer/the_silver_searcher/issues/986/labels{/name}","comments_url":"https://api.github.com/repos/ggreer/the_silver_searcher/issues/986/comments","events_url":"https://api.github.com/repos/ggreer/the_silver_searcher/issues/986/events","html_url":"https://github.com/ggreer/the_silver_searcher/issues/986","id":182111725,"number":986,"title":"can't access ag output via perl","user":{"login":"pmahnke","id":441217,"avatar_url":"https://avatars.githubusercontent.com/u/441217?v=3","gravatar_id":"","url":"https://api.github.com/users/pmahnke","html_url":"https://github.com/pmahnke","followers_url":"https://api.github.com/users/pmahnke/followers","following_url":"https://api.github.com/users/pmahnke/following{/other_user}","gists_url":"https://api.github.com/users/pmahnke/gists{/gist_id}","starred_url":"https://api.github.com/users/pmahnke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pmahnke/subscriptions","organizations_url":"https://api.github.com/users/pmahnke/orgs","repos_url":"https://api.github.com/users/pmahnke/repos","events_url":"https://api.github.com/users/pmahnke/events{/privacy}","received_events_url":"https://api.github.com/users/pmahnke/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-10T20:49:01Z","updated_at":"2016-10-10T21:01:17Z","closed_at":null,"body":"I am trying to use ag in a simple perl search function on a little community website I help with...\r\n\r\nI can't seem to do something like...\r\n\r\n```my @files = `/usr/bin/ag -il0 --nocolor \"AGM\" /home/cavendish-allotments/src/cavendish-allotments/_posts/`;```\r\n\r\nand get a list of files like grep (e.g `/bin/grep -iIRl \"$_[0]\" /home/cavendish-allotments/src/cavendish-allotments/_posts/*`) might provide.\r\n\r\nI have tried piping to sponge, echo, 2>&1 as well as things like qx//, but nothing seems to work. \r\n\r\nI realise this might appear to be support, not a bug, but I can't seem to find a better place to ask.\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/ggreer/the_silver_searcher/issues/comments/252745178","html_url":"https://github.com/ggreer/the_silver_searcher/issues/986#issuecomment-252745178","issue_url":"https://api.github.com/repos/ggreer/the_silver_searcher/issues/986","id":252745178,"user":{"login":"okdana","id":122095,"avatar_url":"https://avatars.githubusercontent.com/u/122095?v=3","gravatar_id":"","url":"https://api.github.com/users/okdana","html_url":"https://github.com/okdana","followers_url":"https://api.github.com/users/okdana/followers","following_url":"https://api.github.com/users/okdana/following{/other_user}","gists_url":"https://api.github.com/users/okdana/gists{/gist_id}","starred_url":"https://api.github.com/users/okdana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/okdana/subscriptions","organizations_url":"https://api.github.com/users/okdana/orgs","repos_url":"https://api.github.com/users/okdana/repos","events_url":"https://api.github.com/users/okdana/events{/privacy}","received_events_url":"https://api.github.com/users/okdana/received_events","type":"User","site_admin":false},"created_at":"2016-10-10T21:01:17Z","updated_at":"2016-10-10T21:01:17Z","body":"It seems to work for me:\r\n\r\n```\r\nproserpina:/tmp % cat ./test.pl\r\n#!/usr/bin/env perl\r\n#findme\r\nmy @files = `/usr/local/bin/ag -il0 --nocolor 'findme' /tmp`;\r\nprint @files, \"\\n\";\r\n\r\nproserpina:/tmp % /usr/local/bin/ag -il0 --nocolor 'findme' /tmp\r\n/tmp/test.pl\r\n\r\nproserpina:/tmp % ./test.pl\r\n/tmp/test.pl\r\n```\r\n\r\nTry running it with `--debug` and see what it says?"}}
{"actor":{"display_login":"okdana"}}