filehandle vs. filedescriptor in Glib?



Hmm.. currently, Glib's requirement for filedescriptors and not file
handles leads to pretty unintuitive error messages:

   add_watch Glib::IO $fh, ...

   =>

   GLib-WARNING **: giounix.c:397Error while getting flags for FD: Bad
   file descriptor (9)

Is there a special reason why Glib does work with perl files, or can I go
and change the interface to work with filehandles?

-- 
      -----==-                                             |
      ----==-- _                                           |
      ---==---(_)__  __ ____  __       Marc Lehmann      +--
      --==---/ / _ \/ // /\ \/ /       pcg goof com      |e|
      -=====/_/_//_/\_,_/ /_/\_\       XX11-RIPE         --+
    The choice of a GNU generation                       |
                                                         |



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]