Hi folks,

I don't see any way, through the Inotify2 interface at least, of getting a list 
of the 'watch' objects that an 'inotify2' object contains.

I can use Data::Dumper to see the structure of an inotify2 object ...

$VAR1 = bless( {
                 'w' => {
                          '1' => bless( {
                                          'wd' => 1,
                                          'name' => 'LMI-dropbox',
                                          'inotify' => $VAR1,
                                          'cb' => sub { "DUMMY" },
                                          'mask' => 3221286911
                                        }, 'Linux::Inotify2::Watch' ),
                          '2' => bless( {
                                          'wd' => 2,
                                          'name' => 'LMI-dropbox/chap',
                                          'inotify' => $VAR1,
                                          'cb' => $VAR1->{'w'}{'1'}{'cb'},
                                          'mask' => 3221286911
                                        }, 'Linux::Inotify2::Watch' )
                        },
                 'fd' => 3
               }, 'Linux::Inotify2' );

... but since 'w' isn't publicly declared in the documentation to be a hash, I 
hesitate to write code to navigate it as such.

Is there a documented method for obtaining a list of watched objects, that I 
have overlooked?

Thanks,
Chap
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to