FAQ
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

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupbeginners @
categoriesperl
postedNov 13, '10 at 12:03a
activeNov 13, '10 at 12:03a
posts1
users1
websiteperl.org

1 user in discussion

Chap Harrison: 1 post

People

Translate

site design / logo © 2022 Grokbase