refactoring to use Perl Best Practices getters/setters

Please refer to my last comment in https://github.com/lucastheisen/ipc-open3-callback/pull/4 for more information