http://qs1969.pair.com?node_id=491532

Eyck has asked for the wisdom of the Perl Monks concerning the following question:

I'm trying to provide fd for Linux::INotify, but I'm having problems fetching that..., I tried something like that:

my ($fd); open($fd,"/tmp"); use Data::Dumper; print "PID: $$"; print Dumper(\$fd);
but all I get is:
 PID: 22117
 $VAR1 = \\*{'::$fd'};
Additionally I tried looking at that pid:
wraith eyck 11:17 ~> ls /proc/22117/fd -l
total 0
lrwx------  1 eyck root 64 Sep 13 11:17 0 -> /dev/pts/44
lrwx------  1 eyck root 64 Sep 13 11:17 1 -> /dev/pts/44
lrwx------  1 eyck root 64 Sep 13 11:17 2 -> /dev/pts/44
lr-x------  1 eyck root 64 Sep 13 11:17 3 -> /tmp
Is there a way to see that from inside?