Created
January 30, 2017 17:21
-
-
Save autarch/6425ca143c6027445421fd7a8899d58b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| use strict; | |
| use warnings; | |
| { | |
| package Foo; | |
| use Moose; | |
| has foo => ( | |
| is => 'ro', | |
| does => 'File::ChangeNotify::Watcher', | |
| ); | |
| } | |
| use Devel::Confess; | |
| use File::ChangeNotify::Watcher::Default; | |
| Foo->new( foo => | |
| File::ChangeNotify::Watcher::Default->new( directories => ['~/tmp'] ) | |
| ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment