perlquestion
Eyck
I'm trying to provide fd for Linux::INotify, but I'm having problems fetching that..., I tried something like that:
<p>
<code>
my ($fd);
open($fd,"/tmp");
use Data::Dumper;
print "PID: $$";
print Dumper(\$fd);
</code>
but all I get is:
<pre>
PID: 22117
$VAR1 = \\*{'::$fd'};
</pre>
Additionally I tried looking at that pid:
<pre>
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
</pre>
Is there a way to see that from inside?