{"action":"created","issue":{"url":"https://api.github.com/repos/dsheroh/Config-Onion/issues/4","labels_url":"https://api.github.com/repos/dsheroh/Config-Onion/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/dsheroh/Config-Onion/issues/4/comments","events_url":"https://api.github.com/repos/dsheroh/Config-Onion/issues/4/events","html_url":"https://github.com/dsheroh/Config-Onion/issues/4","id":9049055,"number":4,"title":"Add ~ support","user":{"login":"dsheroh","id":150209,"avatar_url":"https://avatars.githubusercontent.com/u/150209?v=3","gravatar_id":"","url":"https://api.github.com/users/dsheroh","html_url":"https://github.com/dsheroh","followers_url":"https://api.github.com/users/dsheroh/followers","following_url":"https://api.github.com/users/dsheroh/following{/other_user}","gists_url":"https://api.github.com/users/dsheroh/gists{/gist_id}","starred_url":"https://api.github.com/users/dsheroh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dsheroh/subscriptions","organizations_url":"https://api.github.com/users/dsheroh/orgs","repos_url":"https://api.github.com/users/dsheroh/repos","events_url":"https://api.github.com/users/dsheroh/events{/privacy}","received_events_url":"https://api.github.com/users/dsheroh/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dsheroh/Config-Onion/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2012-12-06T10:40:58Z","updated_at":"2016-01-21T15:13:14Z","closed_at":null,"body":"Use of ~ in filespec should go to user's home directory."},"comment":{"url":"https://api.github.com/repos/dsheroh/Config-Onion/issues/comments/173601662","html_url":"https://github.com/dsheroh/Config-Onion/issues/4#issuecomment-173601662","issue_url":"https://api.github.com/repos/dsheroh/Config-Onion/issues/4","id":173601662,"user":{"login":"nawglan","id":28844,"avatar_url":"https://avatars.githubusercontent.com/u/28844?v=3","gravatar_id":"","url":"https://api.github.com/users/nawglan","html_url":"https://github.com/nawglan","followers_url":"https://api.github.com/users/nawglan/followers","following_url":"https://api.github.com/users/nawglan/following{/other_user}","gists_url":"https://api.github.com/users/nawglan/gists{/gist_id}","starred_url":"https://api.github.com/users/nawglan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nawglan/subscriptions","organizations_url":"https://api.github.com/users/nawglan/orgs","repos_url":"https://api.github.com/users/nawglan/repos","events_url":"https://api.github.com/users/nawglan/events{/privacy}","received_events_url":"https://api.github.com/users/nawglan/received_events","type":"User","site_admin":false},"created_at":"2016-01-21T15:13:14Z","updated_at":"2016-01-21T15:13:14Z","body":"I think that perl's glob feature already supports ~ in the path.  Just need to be sure that the parts being passed to glob are quoted properly if there is white space in the name.  Though for non-unix systems File::HomeDir may be necessary.  There are 2 forms for the ~ expression in a path.  Either pointing to current user's home directory (~/some/path) or pointing to another user's home folder like (~someuser/some/path).  A regex to look for both cases wouldn't be too hard to come up with and then use File::HomeDir with File::Spec->catfile to convert to a real path."}}