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:
but all I get is:my ($fd); open($fd,"/tmp"); use Data::Dumper; print "PID: $$"; print Dumper(\$fd);
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 -> /tmpIs there a way to see that from inside?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: How to get file descriptor (number)
by dave_the_m (Monsignor) on Sep 13, 2005 at 10:25 UTC | |
by Eyck (Priest) on Sep 13, 2005 at 12:39 UTC | |
Re: How to get file descriptor (number)
by liverpole (Monsignor) on Sep 13, 2005 at 12:12 UTC | |
by Hue-Bond (Priest) on Sep 13, 2005 at 15:30 UTC | |
|
Back to
Seekers of Perl Wisdom